Skip to content

Commit

Permalink
✅ More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Mar 24, 2022
1 parent 03de3aa commit e7deddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ERC721.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ contract ERC721Test is DSTestPlus {
}

function testTransferFromApproveAll(uint256 id, address to) public {
if (to == address(0)) to = address(0xBEEF);
if (to == address(0) || to == address(this)) to = address(0xBEEF);

ERC721User from = new ERC721User(token);

Expand All @@ -454,7 +454,7 @@ contract ERC721Test is DSTestPlus {
}

function testSafeTransferFromToEOA(uint256 id, address to) public {
if (to == address(0)) to = address(0xBEEF);
if (to == address(0) || to == address(this)) to = address(0xBEEF);

if (uint256(uint160(to)) <= 18 || to.code.length > 0) return;

Expand Down

0 comments on commit e7deddf

Please sign in to comment.