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

test(e2e): added test case for transferring large uint256 amounts #222

Merged
merged 11 commits into from
Jan 17, 2025

Conversation

srdtrk
Copy link
Member

@srdtrk srdtrk commented Jan 17, 2025

Description

closes: #61


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.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.69%. Comparing base (0a58781) to head (6062bcf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #222   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          11       11           
  Lines         535      535           
=======================================
  Hits          528      528           
  Misses          7        7           

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

@srdtrk srdtrk marked this pull request as ready for review January 17, 2025 07:19
Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

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

Mostly clean and good to go, I think. Left a couple of small things to fix, but once they are in you can merge.

e2e/interchaintestv8/ibc_eureka_test.go Outdated Show resolved Hide resolved
transferAmount := big.NewInt(testvalues.TransferAmount)
totalTransferAmount := big.NewInt(testvalues.TransferAmount * int64(numOfTransfers)) // total amount transferred
if totalTransferAmount.Int64() > testvalues.InitialBalance {
s.FailNow("Total transfer amount exceeds the initial balance")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not check this anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

the test will fail anyway while sending. So not really needed

Copy link
Contributor

Choose a reason for hiding this comment

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

That is fair, as long as the error is clear.

scripts/E2ETestDeploy.s.sol Outdated Show resolved Hide resolved
@srdtrk srdtrk merged commit 23299a5 into main Jan 17, 2025
61 checks passed
@srdtrk srdtrk deleted the serdar/61-uint256-e2e branch January 17, 2025 11:45
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.

Write e2e test that transfer a uint256 amount from Ethereum to Cosmos and back
2 participants