Skip to content

Commit

Permalink
Bugfix: opETX should validate gas price and tip from stack
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed Jun 7, 2023
1 parent 0bffbcb commit 29e51ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ func opETX(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte
return nil, nil
}
// Fail if ETX gas price or tip are not valid
if err := interpreter.evm.ValidateETXGasPriceAndTip(sender, interpreter.evm.ETXGasPrice, interpreter.evm.ETXGasTip); err != nil {
if err := interpreter.evm.ValidateETXGasPriceAndTip(scope.Contract.Caller(), gasFeeCap.ToBig(), gasTipCap.ToBig()); err != nil {
temp.Clear()
stack.push(&temp)
fmt.Printf("%x opETX error: %s\n", scope.Contract.self.Address(), err.Error())
Expand Down

0 comments on commit 29e51ca

Please sign in to comment.