update comment

This commit is contained in:
Felix Lange 2026-02-04 13:22:05 +01:00 committed by GitHub
parent 7663959956
commit 9ac675d0c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -281,8 +281,9 @@ func (evm *EVM) Call(caller common.Address, addr common.Address, input []byte, g
}
evm.StateDB.CreateAccount(addr)
}
// Perform the value transfer in non-syscall mode. This is essential for zero-value
// transfers to ensure the clearing mechanism is applied.
// Perform the value transfer only in non-syscall mode.
// Calling this is required even for zero-value transfers,
// to ensure the state clearing mechanism is applied.
if !syscall {
evm.Context.Transfer(evm.StateDB, caller, addr, value)
}