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

Commit

Permalink
Merge branch 'fedekunze/params-migration' of github.com:evmos/ethermi…
Browse files Browse the repository at this point in the history
…nt into fedekunze/params-migration
  • Loading branch information
fedekunze committed Jan 23, 2023
2 parents 110c5cf + db8ce86 commit 6d83f10
Show file tree
Hide file tree
Showing 2 changed files with 229 additions and 229 deletions.
6 changes: 3 additions & 3 deletions x/evm/migrations/v4/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestMigrate(t *testing.T) {
enableCreate := kvStore.Has(types.ParamStoreKeyEnableCreate)
enableCall := kvStore.Has(types.ParamStoreKeyEnableCall)

var chainCfg v4types.ChainConfig
var chainCfg v4types.V4ChainConfig
bz = kvStore.Get(types.ParamStoreKeyChainConfig)
cdc.MustUnmarshal(bz, &chainCfg)

Expand All @@ -62,13 +62,13 @@ func TestMigrate(t *testing.T) {
AllowUnprotectedTxs: allowUnprotectedTx,
EnableCreate: enableCreate,
EnableCall: enableCall,
ChainConfig: chainCfg,
V4ChainConfig: chainCfg,
ExtraEIPs: extraEIPs,
}

require.Equal(t, legacySubspace.ps.EnableCall, params.EnableCall)
require.Equal(t, legacySubspace.ps.EnableCreate, params.EnableCreate)
require.Equal(t, legacySubspace.ps.AllowUnprotectedTxs, params.AllowUnprotectedTxs)
require.Equal(t, legacySubspace.ps.ExtraEIPs, params.ExtraEIPs.EIPs)
require.EqualValues(t, legacySubspace.ps.ChainConfig, params.ChainConfig)
require.EqualValues(t, legacySubspace.ps.ChainConfig, params.V4ChainConfig)
}
Loading

0 comments on commit 6d83f10

Please sign in to comment.