Skip to content

Commit

Permalink
fix migration handler to update min base fee
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Oct 7, 2024
1 parent 4daa00c commit a81b435
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 a81b435

Please sign in to comment.