From 2c25ab65b875fe9fd90b0befc2e62591c3a7f1d0 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Mon, 24 Jul 2023 17:24:40 +0200 Subject: [PATCH] add todo comments --- internal/ethapi/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index bdd2c7a5ed..3d044d600e 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -919,6 +919,7 @@ func (diff *StateOverride) Apply(state *state.StateDB) error { } // ApplyMulticall overrides the fields of specified accounts into the given state. +// TODO: consider MoveTo by address mapping func (diff *StateOverride) ApplyMulticall(state *state.StateDB, precompiles vm.PrecompiledContracts) error { if diff == nil { return nil @@ -947,6 +948,7 @@ func (diff *StateOverride) ApplyMulticall(state *state.StateDB, precompiles vm.P state.SetNonce(*account.MoveTo, state.GetNonce(addr)) state.SetCode(*account.MoveTo, state.GetCode(addr)) // Copy storage over + // TODO: Use snaps state.ForEachStorage(addr, func(key, value common.Hash) bool { state.SetState(*account.MoveTo, key, value) return true