mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
update comment
This commit is contained in:
parent
7663959956
commit
9ac675d0c7
1 changed files with 3 additions and 2 deletions
|
|
@ -281,8 +281,9 @@ func (evm *EVM) Call(caller common.Address, addr common.Address, input []byte, g
|
||||||
}
|
}
|
||||||
evm.StateDB.CreateAccount(addr)
|
evm.StateDB.CreateAccount(addr)
|
||||||
}
|
}
|
||||||
// Perform the value transfer in non-syscall mode. This is essential for zero-value
|
// Perform the value transfer only in non-syscall mode.
|
||||||
// transfers to ensure the clearing mechanism is applied.
|
// Calling this is required even for zero-value transfers,
|
||||||
|
// to ensure the state clearing mechanism is applied.
|
||||||
if !syscall {
|
if !syscall {
|
||||||
evm.Context.Transfer(evm.StateDB, caller, addr, value)
|
evm.Context.Transfer(evm.StateDB, caller, addr, value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue