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

chore: ica submodules minor improvements and cleanup #549

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

damiannolan
Copy link
Contributor

@damiannolan damiannolan commented Nov 18, 2021

Description

The following PR includes some residual follow up tasks from #541, namely:

  • Updating GenesisState protobuf types to include (gogoproto.nullable) = false in favour of pointer types
  • Updating GenesisState functions and tests to accommodate value types
  • Updating module.go ExportGenesis to include default genesis types in favour of nil pointers
  • Removing GetAllPorts unused function from host submodule
  • Moving ValidateBasic check in relay.go to avoid unnecessary loop iterations

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@@ -56,7 +56,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {

// ValidateGenesis performs genesis state validation for the IBC interchain acounts module
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {
return nil
return nil // TODO: https://github.com/cosmos/ibc-go/issues/535
Copy link
Contributor Author

@damiannolan damiannolan Nov 18, 2021

Choose a reason for hiding this comment

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

I figured implementing ValidateGenesis should be kept to it's own PR entirely. Wanted to keep this concise.

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Amazing, thanks! I love how easy this was to review. Thanks for keeping it well scoped

@damiannolan damiannolan merged commit b87b806 into interchain-accounts Nov 19, 2021
@damiannolan damiannolan deleted the damian/submodules-followups branch November 19, 2021 11:29
faddat pushed a commit to notional-labs/ibc-go that referenced this pull request Feb 23, 2022
…hub.com/spf13/viper-1.8.1

Bump github.com/spf13/viper from 1.8.0 to 1.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants