Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further v7 upgrade updates #246

Merged
merged 18 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test arbitrum cellar to axelarcork
EricBolten committed Dec 14, 2023
commit 6f6497efb776ff238e35d5117cdfc26a353846c5
24 changes: 24 additions & 0 deletions app/upgrades/v7/upgrades.go
Original file line number Diff line number Diff line change
@@ -192,6 +192,30 @@ func axelarcorkInitGenesis(ctx sdk.Context, axelarcorkKeeper axelarcorkkeeper.Ke
},
}

// InitGenesis reads through each chain configuration in order and sets the cellar ID set
// for it based on index, so this list must be of the same size and order as the respective
// chain configurations above
genesisState.CellarIds = []*axelarcorktypes.CellarIDSet{
{
Ids: []string{"0x438087f7c226A89762a791F187d7c3D4a0e95ae6"},
},
{
Ids: []string{},
},
{
Ids: []string{},
},
{
Ids: []string{},
},
{
Ids: []string{},
},
{
Ids: []string{},
},
}

if err := genesisState.Validate(); err != nil {
panic(fmt.Errorf("axelarcork genesis state invalid: %s", err))
}