Skip to content

Commit

Permalink
dont populate genesis info
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Jan 6, 2025
1 parent f021952 commit 0a260f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
13 changes: 3 additions & 10 deletions app/upgrades/drs-5-from2d/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,9 @@ func migrateHubGenesis(ctx sdk.Context, k hubgenkeeper.Keeper) error {
Channel: "channel-0",
}
k.SetState(ctx, s)

/*
We set PopulateGenesisInfo because the state it writes is used by GetBaseDenom
We need to set a dummy checksum otherwise PopulateGenesisInfo complains.
It's not actually used anywhere.
*/
k.SetGenesisInfo(ctx, hubgenesistypes.GenesisInfo{GenesisChecksum: "This is a placeholder - only exists for nim and mande due to migration - not real checksum"})
return k.PopulateGenesisInfo(ctx, nil)
// Note: we won't populate genesis info. It has difficulties, such as missing checksum and denom metadata.
// It isn't needed for established chains.
return nil
}

func migrateRollappParams(ctx sdk.Context, k rollappparamskeeper.Keeper) error {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,6 @@ replace (

// TODO: cleanup after rdk is merged
//replace github.com/dymensionxyz/dymension-rdk => /Users/danwt/Documents/dym/d-dymension-rdk
replace github.com/dymensionxyz/dymension-rdk => github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106130345-02ca863760b8
replace github.com/dymensionxyz/dymension-rdk => github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106141106-c4bf86e13eaf

replace github.com/dymensionxyz/dymint => github.com/dymensionxyz/dymint v1.3.0-rc02.0.20250106124459-756b49ffdf0c
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ github.com/dymensionxyz/cosmos-sdk v0.46.17-0.20241128210616-e9dfe47b8c73 h1:A0O
github.com/dymensionxyz/cosmos-sdk v0.46.17-0.20241128210616-e9dfe47b8c73/go.mod h1:VPUuzF+l+ekSGPV7VVB8m0OMQfwp3QdKWNZjvkU3A1U=
github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20241121093220-e0d7ad456fbd h1:V89QyOFM84o9w0iFdctMU6So8SS/Xt32JWAXGqJduT0=
github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20241121093220-e0d7ad456fbd/go.mod h1:3weqpVj/TqTFpC0LjEB3H+HZSpm7BrQ1QkEg1Ahy6KY=
github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106130345-02ca863760b8 h1:L+0O1BlZfZtVrRQkQdlFDTUlFyG0qM49Z8ucMD61upo=
github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106130345-02ca863760b8/go.mod h1:PgFH4LETkSRpSJDfxsvNs3VCb//O1nkbAM+cZWYkaVU=
github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106141106-c4bf86e13eaf h1:jo12b6NffdTwP3IRWUmec0OVrlfuOx/wHAi0w20RbZ0=
github.com/dymensionxyz/dymension-rdk v1.8.0-rc02.0.20250106141106-c4bf86e13eaf/go.mod h1:PgFH4LETkSRpSJDfxsvNs3VCb//O1nkbAM+cZWYkaVU=
github.com/dymensionxyz/dymint v1.3.0-rc02.0.20250106124459-756b49ffdf0c h1:tTwBWY63JcfNqB32TKI5TyNZ2vGhwP8I4N0hzsJy9V8=
github.com/dymensionxyz/dymint v1.3.0-rc02.0.20250106124459-756b49ffdf0c/go.mod h1:sqE+4imdASE9lm63jv+K2zmOnclLJNZLPYbL9m6vR3o=
github.com/dymensionxyz/evmos/v12 v12.1.6-dymension-v0.5.0-rc02 h1:G6rtzFNnzeYOHN33rkw0kMQX+xRantRLTip1AMXYmBg=
Expand Down

0 comments on commit 0a260f3

Please sign in to comment.