Skip to content

Commit

Permalink
EIP-1559: fix migration handler to update min base fee (#1891)
Browse files Browse the repository at this point in the history
fix migration handler to update min base fee
  • Loading branch information
jewei1997 authored Oct 8, 2024
1 parent 4daa00c commit b9199c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x/evm/migrations/migrate_eip_1559_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ func MigrateEip1559Params(ctx sdk.Context, k *keeper.Keeper) error {
keeperParams.MaxDynamicBaseFeeUpwardAdjustment = types.DefaultParams().MaxDynamicBaseFeeUpwardAdjustment
keeperParams.MaxDynamicBaseFeeDownwardAdjustment = types.DefaultParams().MaxDynamicBaseFeeDownwardAdjustment
keeperParams.TargetGasUsedPerBlock = types.DefaultParams().TargetGasUsedPerBlock
keeperParams.MinimumFeePerGas = types.DefaultParams().MinimumFeePerGas
k.SetParams(ctx, keeperParams)
return nil
}
1 change: 1 addition & 0 deletions x/evm/migrations/migrate_eip_1559_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ func TestMigrateEip1559Params(t *testing.T) {
require.Equal(t, keeperParams.MaxDynamicBaseFeeUpwardAdjustment, types.DefaultParams().MaxDynamicBaseFeeUpwardAdjustment)
require.Equal(t, keeperParams.MaxDynamicBaseFeeDownwardAdjustment, types.DefaultParams().MaxDynamicBaseFeeDownwardAdjustment)
require.Equal(t, keeperParams.TargetGasUsedPerBlock, types.DefaultParams().TargetGasUsedPerBlock)
require.Equal(t, keeperParams.MinimumFeePerGas, types.DefaultParams().MinimumFeePerGas)
}

0 comments on commit b9199c6

Please sign in to comment.