Skip to content

Commit

Permalink
v5.5.1 & v5.5.2 release (#1685)
Browse files Browse the repository at this point in the history
* Add v5.5.0 release

* add evm migration

* Add v5.5.2
  • Loading branch information
philipsu522 authored May 20, 2024
1 parent 6140a56 commit c92dc5f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Ref: https://keepachangelog.com/en/1.0.0/
-->

# Changelog
## v5.5.2
sei-chain
* [#1685](https://github.com/sei-protocol/sei-chain/pull/1685) Add EVM support to v5.5.2
## v5.4.0
sei-chain
* [#1671](https://github.com/sei-protocol/sei-chain/pull/1671) Update and fixes to ERC721 contract
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ func (app *App) SetStoreUpgradeHandlers() {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
}

if upgradeInfo.Name == "v5.1.0" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if (upgradeInfo.Name == "v5.1.0" || upgradeInfo.Name == "v5.5.2") && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{evmtypes.StoreKey},
}
Expand Down
3 changes: 3 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ var upgradesList = []string{
"v5.2.2",
"v5.3.0",
"v5.4.0",
"v5.5.0",
"v5.5.1",
"v5.5.2",
}

// if there is an override list, use that instead, for integration tests
Expand Down
6 changes: 5 additions & 1 deletion x/evm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
_ = cfg.RegisterMigration(types.ModuleName, 6, func(ctx sdk.Context) error {
return migrations.StoreCWPointerCode(ctx, am.keeper, false, true)
})

_ = cfg.RegisterMigration(types.ModuleName, 7, func(ctx sdk.Context) error {
return migrations.StoreCWPointerCode(ctx, am.keeper, false, true)
})
}

// RegisterInvariants registers the capability module's invariants.
Expand All @@ -175,7 +179,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw
}

// ConsensusVersion implements ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 { return 7 }
func (AppModule) ConsensusVersion() uint64 { return 8 }

// BeginBlock executes all ABCI BeginBlock logic respective to the capability module.
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) {
Expand Down
2 changes: 1 addition & 1 deletion x/evm/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestModuleExportGenesis(t *testing.T) {
func TestConsensusVersion(t *testing.T) {
k, _ := testkeeper.MockEVMKeeper()
module := evm.NewAppModule(nil, k)
assert.Equal(t, uint64(7), module.ConsensusVersion())
assert.Equal(t, uint64(8), module.ConsensusVersion())
}

func TestABCI(t *testing.T) {
Expand Down

0 comments on commit c92dc5f

Please sign in to comment.