Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrockrises committed Oct 29, 2024
1 parent 25016ac commit f5b7433
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/unit/concrete/TestTokenPaymaster.Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ contract TestTokenPaymasterBase is TestBase {
usdc.approve(address(SWAP_ROUTER_ADDRESS), usdc.balanceOf(address(tokenPaymaster)));
vm.stopPrank();

// Review reson for failure
// startPrank(PAYMASTER_OWNER.addr);
// tokenPaymaster.swapTokenAndDeposit(address(usdc), initialTokenBalance, 1);
// stopPrank();
// Review reason for failure
startPrank(PAYMASTER_OWNER.addr);
tokenPaymaster.swapTokenAndDeposit(address(usdc), initialTokenBalance, 1);
stopPrank();

// uint256 newTokenBalance = usdc.balanceOf(address(tokenPaymaster));
// assertEq(newTokenBalance, 0);
uint256 newTokenBalance = usdc.balanceOf(address(tokenPaymaster));
assertEq(newTokenBalance, 0);

// uint256 newDepositOnEntryPoint = tokenPaymaster.getDeposit();
// assertGt(newDepositOnEntryPoint, initialDepositOnEntryPoint);
uint256 newDepositOnEntryPoint = tokenPaymaster.getDeposit();
assertGt(newDepositOnEntryPoint, initialDepositOnEntryPoint);
}
}

0 comments on commit f5b7433

Please sign in to comment.