Skip to content

Commit

Permalink
Merge pull request #27 from testinprod-io/tei/fix-1559-canyon-field-name
Browse files Browse the repository at this point in the history
[Canyon Hard Fork] Fix EIP1559DenominatorCanyon config field name
  • Loading branch information
ImTei authored Nov 8, 2023
2 parents bf9074a + 508e450 commit daea839
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 daea839

Please sign in to comment.