mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 09:20:44 +00:00
internal/ethapi: skip transfer capture for callcode in log tracer (#35248)
This commit is contained in:
parent
dd672c6867
commit
769c8c52c5
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) {
|
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))
|
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)
|
t.captureTransfer(from, to, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue