mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
add todo comments
This commit is contained in:
parent
9aed710aa9
commit
2c25ab65b8
1 changed files with 2 additions and 0 deletions
|
|
@ -919,6 +919,7 @@ func (diff *StateOverride) Apply(state *state.StateDB) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplyMulticall overrides the fields of specified accounts into the given state.
|
// 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 {
|
func (diff *StateOverride) ApplyMulticall(state *state.StateDB, precompiles vm.PrecompiledContracts) error {
|
||||||
if diff == nil {
|
if diff == nil {
|
||||||
return 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.SetNonce(*account.MoveTo, state.GetNonce(addr))
|
||||||
state.SetCode(*account.MoveTo, state.GetCode(addr))
|
state.SetCode(*account.MoveTo, state.GetCode(addr))
|
||||||
// Copy storage over
|
// Copy storage over
|
||||||
|
// TODO: Use snaps
|
||||||
state.ForEachStorage(addr, func(key, value common.Hash) bool {
|
state.ForEachStorage(addr, func(key, value common.Hash) bool {
|
||||||
state.SetState(*account.MoveTo, key, value)
|
state.SetState(*account.MoveTo, key, value)
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue