Skip to content

Commit

Permalink
✅ Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Apr 4, 2022
1 parent 97fbb4a commit 4eaf6b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/SafeTransferLib.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ contract SafeTransferLibTest is DSTestPlus {
}

function testTransferETH(address recipient, uint256 amount) public {
if (recipient.code.length > 0 || uint256(uint160(recipient)) <= 18) return;
// Transferring to msg.sender can fail because it's possible to overflow their ETH balance as it begins non-zero.
if (recipient.code.length > 0 || uint256(uint160(recipient)) <= 18 || recipient == msg.sender) return;

amount = bound(amount, 0, address(this).balance);

Expand Down

0 comments on commit 4eaf6b6

Please sign in to comment.