Skip to content

Conversation

srdtrk
Copy link
Member

@srdtrk srdtrk commented May 7, 2025

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.

@faddat
Copy link
Contributor

faddat commented May 13, 2025

keep it up...

Copy link
Contributor

@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.

Great start!

Status: channeltypesv2.PacketStatus_Failure,
}
}
if payload.Version != types.Version {
Copy link
Contributor

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))
Copy link
Contributor

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?

Copy link
Contributor

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()
Copy link
Contributor

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 {
Copy link
Contributor

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?

Copy link

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 0% with 784 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.37%. Comparing base (24b29e5) to head (0c440fd).

Files with missing lines Patch % Lines
modules/apps/27-gmp/types/solidity_abi.go 0.00% 131 Missing ⚠️
modules/apps/27-gmp/keeper/relay.go 0.00% 92 Missing ⚠️
modules/apps/27-gmp/ibc_module.go 0.00% 84 Missing ⚠️
modules/apps/27-gmp/types/account.go 0.00% 70 Missing ⚠️
modules/apps/27-gmp/types/packet.go 0.00% 62 Missing ⚠️
modules/apps/27-gmp/keeper/msg_server.go 0.00% 53 Missing ⚠️
modules/apps/27-gmp/types/msgs.go 0.00% 45 Missing ⚠️
modules/apps/27-gmp/types/ack.go 0.00% 43 Missing ⚠️
modules/apps/27-gmp/keeper/account.go 0.00% 40 Missing ⚠️
modules/apps/27-gmp/module.go 0.00% 40 Missing ⚠️
... and 6 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8352      +/-   ##
==========================================
- Coverage   58.31%   56.37%   -1.94%     
==========================================
  Files         319      335      +16     
  Lines       22821    23605     +784     
==========================================
  Hits        13307    13307              
- Misses       8907     9691     +784     
  Partials      607      607              
Flag Coverage Δ
08-wasm 65.99% <ø> (ø)
e2e 1.14% <ø> (ø)
ibc-go 61.35% <0.00%> (-2.40%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants