From b9199c69e55ecc5f9b077c8f1388f55bce722ec9 Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Tue, 8 Oct 2024 08:53:37 -0400 Subject: [PATCH] EIP-1559: fix migration handler to update min base fee (#1891) fix migration handler to update min base fee --- x/evm/migrations/migrate_eip_1559_params.go | 1 + x/evm/migrations/migrate_eip_1559_params_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/x/evm/migrations/migrate_eip_1559_params.go b/x/evm/migrations/migrate_eip_1559_params.go index 3009de98b..f3d8975c2 100644 --- a/x/evm/migrations/migrate_eip_1559_params.go +++ b/x/evm/migrations/migrate_eip_1559_params.go @@ -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 } diff --git a/x/evm/migrations/migrate_eip_1559_params_test.go b/x/evm/migrations/migrate_eip_1559_params_test.go index 6f703cc5d..392b8820c 100644 --- a/x/evm/migrations/migrate_eip_1559_params_test.go +++ b/x/evm/migrations/migrate_eip_1559_params_test.go @@ -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) }