Skip to content

Commit

Permalink
Merge pull request #263 from OffchainLabs/scheduled-run-mode
Browse files Browse the repository at this point in the history
Set TxRunMode for scheduled txs in DoCall
  • Loading branch information
PlasmaPower authored Oct 20, 2023
2 parents 5d9bb83 + e8c8827 commit 2eaa152
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 2eaa152

Please sign in to comment.