Skip to content
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

Remove all state from default stateConfig.json #2783

Open
nedsalk opened this issue Jul 18, 2024 · 4 comments
Open

Remove all state from default stateConfig.json #2783

nedsalk opened this issue Jul 18, 2024 · 4 comments
Labels
chore Issue is a chore

Comments

@nedsalk
Copy link
Contributor

nedsalk commented Jul 18, 2024

The stateConfig.json file currently is populated mainly because of the old testing approach. Once #2698 is finished, all the coins and messages can be removed. This will still break some tests, like this one, which were relying on that state.

The fuels.config.ts's privateKey property is set to match one of the owners in the current stateConfig.json will break once it's clean. This stateConfig.json population logic should then be moved into the fuels cli. The utility launchNode gives users the ability to define their own stateConfig.json, so that can be utilized.

@nedsalk nedsalk added blocked Something is blocking development on this issue chore Issue is a chore labels Jul 18, 2024
@nedsalk nedsalk added this to the 0.x post-launch milestone Jul 18, 2024
@arboleya arboleya removed this from the 0.x post-launch milestone Jul 19, 2024
@petertonysmith94
Copy link
Contributor

@nedsalk do you think this could be related to the following discussion - points 3 & 5?

@arboleya arboleya added the p2 label Jul 19, 2024
@arboleya
Copy link
Member

Blocked by:

@arboleya arboleya removed the p2 label Aug 2, 2024
@petertonysmith94 petertonysmith94 removed the blocked Something is blocking development on this issue label Aug 16, 2024
@petertonysmith94
Copy link
Contributor

This might break the templates, which uses the faucet referenced by the private key 0x01.

@nedsalk
Copy link
Contributor Author

nedsalk commented Aug 16, 2024

@petertonysmith94 The templates use autoStartFuelCore under the hood, and there we can pass a custom stateConfig into launchNode and give coins to private key 0x01 so that no breaking happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

No branches or pull requests

3 participants