Skip to content

Commit c4c5211

Browse files
committed
add new migrations file
1 parent b601d0a commit c4c5211

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package migrations
2+
3+
import (
4+
sdk "github.com/cosmos/cosmos-sdk/types"
5+
"github.com/sei-protocol/sei-chain/x/evm/keeper"
6+
"github.com/sei-protocol/sei-chain/x/evm/types"
7+
)
8+
9+
func MigrateEip1559MaxFeePerGas(ctx sdk.Context, k *keeper.Keeper) error {
10+
keeperParams := k.GetParamsIfExists(ctx)
11+
keeperParams.MaximumFeePerGas = types.DefaultParams().MaximumFeePerGas
12+
k.SetParams(ctx, keeperParams)
13+
return nil
14+
}

0 commit comments

Comments
 (0)