Skip to content

Commit

Permalink
test: fix wrong test assumptions (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Jan 7, 2025
1 parent 2967f6a commit f4a12ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/helpers/WrappedTokenGateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ contract WrappedTokenGatewayTests is TestnetProcedures {
vm.startPrank(alice);
vm.expectEmit();
emit ReserveUsedAsCollateralEnabled(tokenList.weth, alice);
emit Supply(tokenList.weth, alice, alice, depositSize, 0);
vm.expectEmit();
emit Supply(tokenList.weth, address(wrappedTokenGatewayV3), alice, depositSize, 0);
wrappedTokenGatewayV3.depositETH{value: depositSize}(report.poolProxy, alice, 0);
vm.stopPrank();

Expand Down Expand Up @@ -278,6 +279,7 @@ contract WrappedTokenGatewayTests is TestnetProcedures {

vm.expectEmit();
emit ReserveUsedAsCollateralEnabled(tokenList.usdx, bob);
vm.expectEmit();
emit Supply(tokenList.usdx, bob, bob, usdxSize, 0);
contracts.poolProxy.deposit(address(usdx), usdxSize, bob, 0);

Expand Down Expand Up @@ -347,6 +349,7 @@ contract WrappedTokenGatewayTests is TestnetProcedures {

vm.expectEmit();
emit ReserveUsedAsCollateralEnabled(tokenList.usdx, bob);
vm.expectEmit();
emit Supply(tokenList.usdx, bob, bob, usdxSize, 0);
contracts.poolProxy.deposit(address(usdx), usdxSize, bob, 0);

Expand Down

0 comments on commit f4a12ec

Please sign in to comment.