mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
internal/ethapi: skip transfer capture for callcode in log tracer
CALLCODE executes in the caller's context and does not transfer value to the callee, so exclude it alongside delegatecall.
This commit is contained in:
parent
ab134b2101
commit
abde3fa7cc
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ func (t *tracer) Hooks() *tracing.Hooks {
|
|||
|
||||
func (t *tracer) onEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
|
||||
t.logs = append(t.logs, make([]*types.Log, 0))
|
||||
if vm.OpCode(typ) != vm.DELEGATECALL && value != nil && value.Cmp(common.Big0) > 0 {
|
||||
if vm.OpCode(typ) != vm.DELEGATECALL && vm.OpCode(typ) != vm.CALLCODE && value != nil && value.Cmp(common.Big0) > 0 {
|
||||
t.captureTransfer(from, to, value)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue