Skip to content

Commit

Permalink
Set TxRunMode for scheduled txs in DoCall
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Oct 19, 2023
1 parent 5d9bb83 commit e8c8827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ func DoCall(ctx context.Context, b Backend, args TransactionArgs, blockNrOrHash
if err != nil {
return nil, err
}
msg.TxRunMode = runMode
// make a new EVM for the scheduled Tx (an EVM must never be reused)
evm, vmError := b.GetEVM(ctx, msg, state, header, &vm.Config{NoBaseFee: true}, &blockCtx)
go func() {
Expand Down

0 comments on commit e8c8827

Please sign in to comment.