Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

chore(evm) - Delete deprecated store migrations #1498

Merged
merged 6 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Improvements

* (emv) [#1498](https://github.com/evmos/ethermint/pull/1498) Remove deprecated store migrations
* (ante) [#1455](https://github.com/evmos/ethermint/pull/1455) Refactor `AnteHandler` logic
* (evm) [#1444](https://github.com/evmos/ethermint/pull/1444) Improve performance of `eth_estimateGas`
* (ante) [\#1388](https://github.com/evmos/ethermint/pull/1388) Optimize AnteHandler gas consumption
Expand Down
16 changes: 0 additions & 16 deletions x/evm/keeper/migrations.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"
v2 "github.com/evmos/ethermint/x/evm/migrations/v2"
v3 "github.com/evmos/ethermint/x/evm/migrations/v3"
)

// Migrator is a struct for handling in-place store migrations.
type Migrator struct {
keeper Keeper
Expand All @@ -17,13 +11,3 @@ func NewMigrator(keeper Keeper) Migrator {
keeper: keeper,
}
}

// Migrate1to2 migrates the store from consensus version v1 to v2
func (m Migrator) Migrate1to2(ctx sdk.Context) error {
return v2.MigrateStore(ctx, &m.keeper.paramSpace)
}

// Migrate2to3 migrates the store from consensus version v2 to v3
func (m Migrator) Migrate2to3(ctx sdk.Context) error {
return v3.MigrateStore(ctx, &m.keeper.paramSpace)
}
31 changes: 0 additions & 31 deletions x/evm/keeper/migrations_test.go

This file was deleted.

19 changes: 0 additions & 19 deletions x/evm/migrations/v2/migrate.go

This file was deleted.

47 changes: 0 additions & 47 deletions x/evm/migrations/v2/migrate_test.go

This file was deleted.

167 changes: 0 additions & 167 deletions x/evm/migrations/v2/types/chain_config.go

This file was deleted.

Loading