Skip to content

Commit

Permalink
Update InvariantBridge.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 21, 2024
1 parent da6dcf3 commit 32e49ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/invariant/InvariantBridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,14 @@ contract InvariantBridge is Test {
vm.selectFork(childId);
uint256 totalSupply = ChildERC20(childToken).totalSupply();

uint256 userBalanceSum = 0;
for (uint256 j = 0; j < NO_OF_USERS; j++) {
address user = users[j];
userBalanceSum += ChildERC20(childToken).balanceOf(user);
}

assertEq(bridgeBalance, totalSupply);
assertEq(bridgeBalance, userBalanceSum);
}
}
}

0 comments on commit 32e49ed

Please sign in to comment.