|
|
|
@ -228,7 +228,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas |
|
|
|
|
if precompiles[addr] == nil && evm.ChainConfig().IsS3(evm.EpochNumber) && value.Sign() == 0 { |
|
|
|
|
// Calling a non existing account, don't do anything, but ping the tracer
|
|
|
|
|
if evm.vmConfig.Debug && evm.depth == 0 { |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(caller.Address(), addr, false, input, gas, value) |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(evm, caller.Address(), addr, false, input, gas, value) |
|
|
|
|
evm.vmConfig.Tracer.CaptureEnd(ret, 0, 0, nil) |
|
|
|
|
} |
|
|
|
|
return nil, gas, nil |
|
|
|
@ -255,7 +255,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas |
|
|
|
|
|
|
|
|
|
// Capture the tracer start/end events in debug mode
|
|
|
|
|
if evm.vmConfig.Debug && evm.depth == 0 { |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(caller.Address(), addr, false, input, gas, value) |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(evm, caller.Address(), addr, false, input, gas, value) |
|
|
|
|
|
|
|
|
|
defer func() { // Lazy evaluation of the parameters
|
|
|
|
|
evm.vmConfig.Tracer.CaptureEnd(ret, gas-contract.Gas, time.Since(start), err) |
|
|
|
@ -440,7 +440,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if evm.vmConfig.Debug && evm.depth == 0 { |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(caller.Address(), address, true, codeAndHash.code, gas, value) |
|
|
|
|
evm.vmConfig.Tracer.CaptureStart(evm, caller.Address(), address, true, codeAndHash.code, gas, value) |
|
|
|
|
} |
|
|
|
|
start := time.Now() |
|
|
|
|
|
|
|
|
|