We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515e912 commit 37b6489Copy full SHA for 37b6489
internal/ethapi/api.go
@@ -962,12 +962,17 @@ type OverrideAccount struct {
962
// StateOverride is the collection of overridden accounts.
963
type StateOverride map[common.Address]OverrideAccount
964
965
+var arbStorageAddress = common.HexToAddress("0xA4B05FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
966
+
967
// Apply overrides the fields of specified accounts into the given state.
968
func (diff *StateOverride) Apply(state *state.StateDB) error {
969
if diff == nil {
970
return nil
971
}
972
for addr, account := range *diff {
973
+ if addr == arbStorageAddress {
974
+ return errors.New("overriding 0xA4B05FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF not allowed")
975
+ }
976
// Override account nonce.
977
if account.Nonce != nil {
978
state.SetNonce(addr, uint64(*account.Nonce))
0 commit comments