Skip to content

Commit

Permalink
Merge pull request ethereum#217 from OffchainLabs/tx-processing-hooks…
Browse files Browse the repository at this point in the history
…-run-mode

add MsgIsGasEstimation method to TxProcessingHook interface
  • Loading branch information
PlasmaPower authored May 18, 2023
2 parents 9e232c1 + 3403c59 commit a3601ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/vm/evm_arbitrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type TxProcessingHook interface {
L1BlockHash(blockCtx BlockContext, l1BlocKNumber uint64) (common.Hash, error)
GasPriceOp(evm *EVM) *big.Int
FillReceiptInfo(receipt *types.Receipt)
MsgIsNonMutating() bool
}

type DefaultTxProcessor struct {
Expand Down Expand Up @@ -93,3 +94,7 @@ func (p DefaultTxProcessor) GasPriceOp(evm *EVM) *big.Int {
}

func (p DefaultTxProcessor) FillReceiptInfo(*types.Receipt) {}

func (p DefaultTxProcessor) MsgIsNonMutating() bool {
return false
}

0 comments on commit a3601ea

Please sign in to comment.