Skip to content

Commit

Permalink
Update KintoWalletFactoryTest to check zero balance and claimed rewar…
Browse files Browse the repository at this point in the history
…ds after account creation
  • Loading branch information
ylv-io committed Dec 12, 2024
1 parent c19e7c0 commit 203fb75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/KintoWalletFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ contract KintoWalletFactoryTest is SharedSetup {
_kintoWallet = _walletFactory.createAccount(_owner, _owner, 0);

assertEq(_kintoWallet.owners(0), _owner);
assertEq(_bridgedKinto.balanceOf(address(_kintoWallet)), 1e18);
assertEq(_bridgedKinto.balanceOf(address(_kintoWallet)), 0);
assertEq(_rewardsDistributor.claimedByUser(address(_kintoWallet)), 0);
}

function testCreateAccount_WhenAfterNewRewards() public {
Expand All @@ -81,6 +82,8 @@ contract KintoWalletFactoryTest is SharedSetup {
_kintoWallet = _walletFactory.createAccount(_owner, _owner, 0);

assertEq(_kintoWallet.owners(0), _owner);
assertEq(_bridgedKinto.balanceOf(address(_kintoWallet)), 0);
assertEq(_rewardsDistributor.claimedByUser(address(_kintoWallet)), 0);
}

function testCreateAccount_WhenAlreadyExists() public {
Expand Down

0 comments on commit 203fb75

Please sign in to comment.