superchain-ops
superchain-ops copied to clipboard
Simple UX for users to override Nonces
At the moment, the new superchain-ops flow provides generic functionality to allow users to supply state overrides. This functionality was introduced in this PR.
As it stands, to override a nonce, we must do the following:
- Supply the 64 character hex string for both the slot and slot value: here
- Supply the decimal values for the slot key and slot value (slightly better UX than 1): here
A simpler UX for task developers would be to provide access to a new TOML table called nonces. e.g.
[nonces]
0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A = 10 # Nonce 10 for address 0x5a0Aae5...
This new nonces table should take precedence over any nonces set inside the state overrides table. e.g. Nonce should be set as 10 and not 9 in the example below:
[nonces]
0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A = 10 # This should take precedence over the state override below.
[stateOverrides]
0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A = [{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = "0x0000000000000000000000000000000000000000000000000000000000000009"}]