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

feat: create channel before invoking provide counterparty. #7420

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

DimitrisJim
Copy link
Contributor

Description

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 the 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 and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@@ -8,4 +8,9 @@ const (
// the counterparty key is imported from types instead of host because
// the counterparty key is not a part of the ics-24 host specification
CounterpartyKey = "counterparty"

// CreatorKey is the key used to store the client creator in the client store
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved from 02-client

@@ -66,3 +66,26 @@ func (k *Keeper) GetCounterparty(ctx context.Context, clientID string) (types.Co
k.cdc.MustUnmarshal(bz, &counterparty)
return counterparty, true
}

// GetCreator returns the creator of the client.
func (k *Keeper) GetCreator(ctx context.Context, clientID string) (string, bool) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto re moved

k.ClientKeeper.SetCreator(ctx, clientID, msg.Signer)

return &clienttypes.MsgCreateClientResponse{}, nil
return &clienttypes.MsgCreateClientResponse{ClientId: clientID}, nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't know why this was never returned? can cherry pick to main too

Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

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

Everything looks so much prettier!!!

@@ -187,7 +188,7 @@ func (suite *KeeperTestSuite) TestRecvPacket() {
{
"failure: counterparty client identifier different than source channel",
Copy link
Member

Choose a reason for hiding this comment

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

test name is still using client identifier

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ugh yea, I've noticed this in other places too. Need to do a comb-through the diff and see where this has been missed.

@DimitrisJim
Copy link
Contributor Author

gonna be doing a comb through for sticky 'client' references in a follow up. Going to make that clientID return change to main.

Copy link

sonarcloud bot commented Oct 9, 2024

@DimitrisJim DimitrisJim merged commit 8e9b8cc into feat/ibc-eureka Oct 9, 2024
65 checks passed
@DimitrisJim DimitrisJim deleted the jim/test-runs-create-channel branch October 9, 2024 13:18
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.

2 participants