-
Notifications
You must be signed in to change notification settings - Fork 693
feat: added ics27-2 gmp application #8352
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
base: main
Are you sure you want to change the base?
Conversation
keep it up... |
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.
Great start!
Status: channeltypesv2.PacketStatus_Failure, | ||
} | ||
} | ||
if payload.Version != types.Version { |
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.
Should this check exist in SendPacket
|
||
// getOrCreateICS27Account retrieves an existing ICS27 account or creates a new one if it doesn't exist. | ||
func (k Keeper) getOrCreateICS27Account(ctx context.Context, accountID *types.AccountIdentifier) (*types.ICS27Account, error) { | ||
existingIcs27Account, err := k.Accounts.Get(ctx, collections.Join3(accountID.ClientId, accountID.Sender, accountID.Salt)) |
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.
Why do you have this additional storage out of state?
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.
Seems redundant with accountKeeper
|
||
// CacheContext returns a new context with the multi-store branched into a cached storage object | ||
// writeCache is called only if all msgs succeed, performing state transitions atomically | ||
cacheCtx, writeCache := ctx.CacheContext() |
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.
No gas limit, should this be in the tx passed into the payload?
} | ||
|
||
// CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. | ||
message CosmosTx { |
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.
Should this use the standardized message cosmos uses?
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.