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

fix: ICA export genesis patch #340

Merged
merged 1 commit into from
Oct 4, 2022
Merged

Conversation

czarcas7ic
Copy link
Member

What is the purpose of the change

During v11 I had a custom branch I and others used to get passed an ICA bug when doing a state export. This implements the fix in our v11 sdk fork which will then be backported to v11x (and maybe a minor release?) so that if someone needs to state export v11 height in the future they are able to.

@czarcas7ic czarcas7ic marked this pull request as ready for review October 4, 2022 17:01
@@ -33,6 +33,9 @@ func NewGenesisState(params Params, accounts GenesisAccounts) *GenesisState {
func (g GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error {
for _, any := range g.Accounts {
var account GenesisAccount
if any.TypeUrl == "/ibc.applications.interchain_accounts.v1.InterchainAccount" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woaaa, why is this necessary?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also might be better to call MsgType on the type directly instead of a hard-coded string in case it changes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we didn't implement ICA correctly in v11, so at some height when someone on mainnet created an ICA it errors the export

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IRT the type vs hard code, this is no longer needed in v12 so even if this changed in the future it would not affect this AFAIU!

@czarcas7ic czarcas7ic merged commit c191a80 into v0.45.0x-osmo-v9 Oct 4, 2022
@czarcas7ic czarcas7ic deleted the adam/v11-ica-patch branch October 4, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants