You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried creating a new JSON file containing only the accounts key using the data from vm.dumpState(). Then, I converted all nonces from hex strings to decimal values. Afterward, I used that JSON for anvil --load-state, and it appeared to load the states correctly so far.
Is this approach, taking the state dumped via vm.dumpState() and repurposing it for Anvil, expected to work?
For context: JSON created by vm.dumpState() looks like this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone.
I tried creating a new JSON file containing only the accounts key using the data from vm.dumpState(). Then, I converted all nonces from hex strings to decimal values. Afterward, I used that JSON for
anvil --load-state
, and it appeared to load the states correctly so far.Is this approach, taking the state dumped via vm.dumpState() and repurposing it for Anvil, expected to work?
For context: JSON created by
vm.dumpState()
looks like thiswhile json by
anvil --dump-state
looks like thisBeta Was this translation helpful? Give feedback.
All reactions