Skip to content

Commit

Permalink
silences compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Sep 10, 2024
1 parent e0f007c commit 9a39be8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/solidity/LiFiDiamond.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ contract LiFiDiamondTest is DSTest {
);

error FunctionDoesNotExist();
error ShouldNotReachThisCode();

function setUp() public {
diamondOwner = address(123456);
Expand Down Expand Up @@ -91,7 +92,8 @@ contract LiFiDiamondTest is DSTest {
bytes memory callData = hex"a516f0f3"; // getPeripheryContract(string)

vm.expectRevert(FunctionDoesNotExist.selector);
address(diamond).call(callData);
(bool success, ) = address(diamond).call(callData);
if (success) revert("ShouldNotReachThisCode");
}

function test_CanReceiveETH() public {
Expand Down
3 changes: 2 additions & 1 deletion test/solidity/LiFiDiamondImmutable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ contract LiFiDiamondImmutableTest is DSTest {
bytes memory callData = hex"a516f0f3"; // getPeripheryContract(string)

vm.expectRevert(FunctionDoesNotExist.selector);
address(diamond).call(callData);
(bool success, ) = address(diamond).call(callData);
if (success) revert("ShouldNotReachThisCode");
}

function test_CanReceiveETH() public {
Expand Down

0 comments on commit 9a39be8

Please sign in to comment.