yeagerai / genlayer-simulator

MIT License
16 stars 8 forks source link

Clear variable state after genlayer init #611

Open kstroobants opened 3 days ago

kstroobants commented 3 days ago

Reproduce the following images by deploying the contract, do a transaction, shutting down docker, genlayer init, go to localhost:8080.

Run and Debug image: red error makes sense but it is contradictory to the contract section that there is an address where it is deployed. Also the Transaction section should be empty. Reason is that genlayer init resets the database. Screenshot 2024-11-18 at 20 54 24

Logs image: the errors should not be there because the contract code was working before shutting down docker and I did not deploy the contract after the genlayer init. Screenshot 2024-11-18 at 20 54 39

Maybe call resetStorage() from the frontend simulator somehow by the CLI.