Skip to content

Commit 8048ac4

Browse files
committed
api: use ArbosStateAddress directly
1 parent c68494d commit 8048ac4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -962,16 +962,14 @@ type OverrideAccount struct {
962962
// StateOverride is the collection of overridden accounts.
963963
type StateOverride map[common.Address]OverrideAccount
964964

965-
var arbStorageAddress = common.HexToAddress("0xA4B05FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")
966-
967965
// Apply overrides the fields of specified accounts into the given state.
968966
func (diff *StateOverride) Apply(state *state.StateDB) error {
969967
if diff == nil {
970968
return nil
971969
}
972970
for addr, account := range *diff {
973-
if addr == arbStorageAddress {
974-
return errors.New("overriding 0xA4B05FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF not allowed")
971+
if addr == types.ArbosStateAddress {
972+
return fmt.Errorf("overriding address %v not allowed", types.ArbosStateAddress)
975973
}
976974
// Override account nonce.
977975
if account.Nonce != nil {

0 commit comments

Comments
 (0)