superchain-ops icon indicating copy to clipboard operation
superchain-ops copied to clipboard

Simple UX for users to override Nonces

Open blmalone opened this issue 11 months ago • 0 comments

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:

  1. Supply the 64 character hex string for both the slot and slot value: here
  2. 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"}]

blmalone avatar Mar 18 '25 19:03 blmalone