Skip to content

Commit

Permalink
Fix EIP1559DenominatorCanyon config field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Nov 7, 2023
1 parent bf9074a commit 508e450
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chain/chain_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ type Config struct {

// OptimismConfig is the optimism config.
type OptimismConfig struct {
EIP1559Elasticity uint64 `json:"eip1559Elasticity"`
EIP1559Denominator uint64 `json:"eip1559Denominator"`
EIP1559DenominatorPostCanyon uint64 `json:"eip1559DenominatorPostCanyon"`
EIP1559Elasticity uint64 `json:"eip1559Elasticity"`
EIP1559Denominator uint64 `json:"eip1559Denominator"`
EIP1559DenominatorCanyon uint64 `json:"eip1559DenominatorCanyon"`
}

// String implements the stringer interface, returning the optimism fee config details.
Expand Down Expand Up @@ -264,7 +264,7 @@ func (c *Config) IsOptimismPreBedrock(num uint64) bool {
func (c *Config) BaseFeeChangeDenominator(defaultParam, time uint64) uint64 {
if c.IsOptimism() {
if c.IsCanyon(time) {
return c.Optimism.EIP1559DenominatorPostCanyon
return c.Optimism.EIP1559DenominatorCanyon
}
return c.Optimism.EIP1559Denominator
}
Expand Down

0 comments on commit 508e450

Please sign in to comment.