FuelLabs / FuelLabs/forc

Add `--fund` flag to forc-node to pre-fund accounts

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
forc-node team:tooling
Dominant language
Rust
Stars
0
Forks
0
Avg merge
1d 22h
Merged PRs (30d)
3

Description

## Description
To fund accounts, one must manually edit the `chainspec` with funded accounts.
This is a hassle as it requires understanding the `chainspec`, editting and persisting the file, then referencing the file in the `forc-node` command.
^ Also this doesn't work reliably (to be validated).

## Proposed Solution
Add a `--fund` flag to forc-node that allows direct account funding:
```sh
forc node local --fund :,:
```
or to also support `amount`
```sh
forc node local --fund ::,::
```

With an optional `--fund-amount` flag to override the default funding amount.

## Benefits
- Simplifies testing with wallets/accounts
- Eliminates need to manually edit chainspecs

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.