From e7deddffd5206cdec1d554c5361f529c2a525846 Mon Sep 17 00:00:00 2001 From: t11s Date: Wed, 23 Mar 2022 21:39:14 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20More=20test=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/ERC721.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ERC721.t.sol b/src/test/ERC721.t.sol index d8ba5bab..a577b3dc 100644 --- a/src/test/ERC721.t.sol +++ b/src/test/ERC721.t.sol @@ -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); @@ -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;