Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
begmaroman committed Sep 8, 2023
1 parent db164ac commit c1b1e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion docker/local/polygon-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CHAIN_CUSTOM_OPTIONS=$(tr "\n" " " << EOL
--chain-id 51001
--name polygon-edge-docker
--premine 0x0000000000000000000000000000000000000000
--premine 0xFA9eEc9FBA16303eaE51EB0ef3F7e090035e3e1A:0xD3C21BCECCEDA1000000
--premine 0x228466F2C715CbEC05dEAbfAc040ce3619d7CF0B:0xD3C21BCECCEDA1000000
--premine 0xca48694ebcB2548dF5030372BE4dAad694ef174e:0xD3C21BCECCEDA1000000
--burn-contract 0:0x0000000000000000000000000000000000000000
Expand Down
9 changes: 2 additions & 7 deletions state/londonFix_fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ func (l *LondonFixForkV2) checkDynamicFees(msg *types.Transaction, t *Transition
// This will panic if baseFee is nil, but basefee presence is verified
// as part of header validation.
if gasFeeCap := msg.GetGasFeeCap(); gasFeeCap.Cmp(t.ctx.BaseFee) < 0 {
field := "GasPrice"
if msg.Type == types.DynamicFeeTx {
field = "GasFeeCap"
}

return fmt.Errorf("%w: address %v, %s: %s, BaseFee: %s", ErrFeeCapTooLow,
msg.From.String(), gasFeeCap, field, t.ctx.BaseFee)
return fmt.Errorf("%w: address %v, GasFeeCap/GasPrice: %s, BaseFee: %s", ErrFeeCapTooLow,
msg.From.String(), gasFeeCap, t.ctx.BaseFee)
}

return nil
Expand Down

0 comments on commit c1b1e37

Please sign in to comment.