|
|
@ -1083,7 +1083,7 @@ func doCall(ctx context.Context, b Backend, args TransactionArgs, state *state.S |
|
|
|
if blockOverrides != nil { |
|
|
|
if blockOverrides != nil { |
|
|
|
blockOverrides.Apply(&blockCtx) |
|
|
|
blockOverrides.Apply(&blockCtx) |
|
|
|
} |
|
|
|
} |
|
|
|
evm, vmError := b.GetEVM(ctx, msg, state, header, &vm.Config{NoBaseFee: true}, &blockCtx) |
|
|
|
evm := b.GetEVM(ctx, msg, state, header, &vm.Config{NoBaseFee: true}, &blockCtx) |
|
|
|
|
|
|
|
|
|
|
|
// Wait for the context to be done and cancel the evm. Even if the
|
|
|
|
// Wait for the context to be done and cancel the evm. Even if the
|
|
|
|
// EVM has finished, cancelling may be done (repeatedly)
|
|
|
|
// EVM has finished, cancelling may be done (repeatedly)
|
|
|
@ -1095,7 +1095,7 @@ func doCall(ctx context.Context, b Backend, args TransactionArgs, state *state.S |
|
|
|
// Execute the message.
|
|
|
|
// Execute the message.
|
|
|
|
gp := new(core.GasPool).AddGas(math.MaxUint64) |
|
|
|
gp := new(core.GasPool).AddGas(math.MaxUint64) |
|
|
|
result, err := core.ApplyMessage(evm, msg, gp) |
|
|
|
result, err := core.ApplyMessage(evm, msg, gp) |
|
|
|
if err := vmError(); err != nil { |
|
|
|
if err := state.Error(); err != nil { |
|
|
|
return nil, err |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1640,7 +1640,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH |
|
|
|
// Apply the transaction with the access list tracer
|
|
|
|
// Apply the transaction with the access list tracer
|
|
|
|
tracer := logger.NewAccessListTracer(accessList, args.from(), to, precompiles) |
|
|
|
tracer := logger.NewAccessListTracer(accessList, args.from(), to, precompiles) |
|
|
|
config := vm.Config{Tracer: tracer, NoBaseFee: true} |
|
|
|
config := vm.Config{Tracer: tracer, NoBaseFee: true} |
|
|
|
vmenv, _ := b.GetEVM(ctx, msg, statedb, header, &config, nil) |
|
|
|
vmenv := b.GetEVM(ctx, msg, statedb, header, &config, nil) |
|
|
|
res, err := core.ApplyMessage(vmenv, msg, new(core.GasPool).AddGas(msg.GasLimit)) |
|
|
|
res, err := core.ApplyMessage(vmenv, msg, new(core.GasPool).AddGas(msg.GasLimit)) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return nil, 0, nil, fmt.Errorf("failed to apply transaction: %v err: %v", args.toTransaction().Hash(), err) |
|
|
|
return nil, 0, nil, fmt.Errorf("failed to apply transaction: %v err: %v", args.toTransaction().Hash(), err) |
|
|
|