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

Commit

Permalink
chore(evm) - Delete deprecated store migrations (#1498)
Browse files Browse the repository at this point in the history
* (fix): Delete deprecated migrations

* Update x/evm/module.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
  • Loading branch information
Vvaradinov and fedekunze committed Nov 25, 2022
1 parent 9fb4c05 commit 8866ae0
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 8,427 deletions.
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

0 comments on commit 8866ae0

Please sign in to comment.