This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(feemarket): Delete deprecated migration logic (#1508)
* (refactor): Remove old migration code * (fix): Lint and add CHANGELOG entry
- Loading branch information
1 parent
5fbe109
commit 831588c
Showing
15 changed files
with
7 additions
and
2,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
package keeper_test | ||
|
||
import ( | ||
"math/big" | ||
|
||
"github.com/evmos/ethermint/x/feemarket/keeper" | ||
v010 "github.com/evmos/ethermint/x/feemarket/migrations/v010" | ||
) | ||
|
||
func (suite *KeeperTestSuite) TestMigration1To2() { | ||
suite.SetupTest() | ||
storeKey := suite.app.GetKey("feemarket") | ||
store := suite.ctx.KVStore(storeKey) | ||
baseFee := big.NewInt(1000) | ||
store.Set(v010.KeyPrefixBaseFeeV1, baseFee.Bytes()) | ||
m := keeper.NewMigrator(suite.app.FeeMarketKeeper) | ||
err := m.Migrate1to2(suite.ctx) | ||
suite.Require().NoError(err) | ||
suite.Require().Equal(baseFee, suite.app.FeeMarketKeeper.GetBaseFee(suite.ctx)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.