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

Multisubnet test #736

Merged
merged 8 commits into from
Feb 27, 2024
Merged

Multisubnet test #736

merged 8 commits into from
Feb 27, 2024

Conversation

cryptoAtwill
Copy link
Contributor

@cryptoAtwill cryptoAtwill commented Feb 22, 2024

Closes ENG-747

Adding more multisubnet test cases.

@cryptoAtwill cryptoAtwill requested a review from raulk February 22, 2024 10:16
executeTopDownMsgs(msgs, nativeSubnetName, address(nativeSubnetGateway));

// works with no state changes
assertEq(recipient.balance, amount);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this test would be easier to understand this test if it started with

  • recipient/parent having balance=3
  • caller/child having balance=0

This way the reader could imagine that the initial state of the tests is when the child released its balance completely.


executeTopDownMsgs(msgs, nativeSubnetName, address(nativeSubnetGateway));

require(caller.balance == amount + amount, "refund not happening");
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above about initial balances as this amount + amount assertion is a bit confusing now.

@maciejwitowski maciejwitowski self-requested a review February 27, 2024 10:30
@cryptoAtwill cryptoAtwill merged commit ebc178f into main Feb 27, 2024
22 checks passed
@cryptoAtwill cryptoAtwill deleted the multisubnet-test branch February 27, 2024 13:30
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