-
Notifications
You must be signed in to change notification settings - Fork 587
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
Conversation
b871186
to
5663c83
Compare
@@ -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 |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
5663c83
to
8269633
Compare
There was a problem hiding this 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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
gonna be doing a comb through for sticky 'client' references in a follow up. Going to make that clientID return change to main. |
Quality Gate passed for 'ibc-go'Issues Measures |
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.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.