-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chain Configs for the fuels CLI should be extendable off of the default one #1952
Comments
Could we generate a I haven't thought much about having the file as part of the template, but that could reduce the abstraction around everything. Especially considering it contains required configs, maybe we should consider showing it instead of hiding it. |
I like this approach. It would be good to have documentation in the
|
Would a command for adding a new wallet be helpful? npm wallet:new
# Pushes new wallet (w/ assets) to the `chainConfig.json`
# Displays the private key for usage in the app. (Just a thought of a way to demonstrate the process) |
Seems to me that this could be a nice extension of forc-wallet, the workflow being similar to what you proposed: forc wallet account new --chain-config ./chain-config.json
# Pushes new wallet (w/ assets) to the `chainConfig.json`
# Displays the private key for usage in the app.
# Adds some default coins |
Makes sense. If we decide to go the extension way instead, for reference I already implemented type-safe chain config extending in #1356 (ref 1, ref 2). |
Currently, if one wants to tweak a certain setting in the default chain config used by the fuels CLI, they would have to provide a whole new chain config file. They cannot just change one single setting.
There should be a way for people to create a custom chain config by extending the default one.
The text was updated successfully, but these errors were encountered: