fuels-ts icon indicating copy to clipboard operation
fuels-ts copied to clipboard

Remove all state from default `stateConfig.json`

Open nedsalk opened this issue 1 year ago • 4 comments

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 avatar Jul 18 '24 07:07 nedsalk

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

petertonysmith94 avatar Jul 19 '24 15:07 petertonysmith94

Blocked by:

  • https://github.com/FuelLabs/fuels-ts/issues/2698

arboleya avatar Jul 19 '24 21:07 arboleya

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

petertonysmith94 avatar Aug 16 '24 10:08 petertonysmith94

@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.

nedsalk avatar Aug 16 '24 12:08 nedsalk