From 32a81af8c459ce76461079312287b3c8233a5ce9 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Tue, 8 Feb 2022 23:06:55 -0500 Subject: [PATCH] Assert on failure --- contracts/ERC721A.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/ERC721A.sol b/contracts/ERC721A.sol index aeefe81b8..0e77dd25b 100644 --- a/contracts/ERC721A.sol +++ b/contracts/ERC721A.sol @@ -28,7 +28,6 @@ error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error UnableDetermineTokenOwner(); -error UnableGetTokenOwnerByIndex(); error URIQueryForNonexistentToken(); /** @@ -123,7 +122,8 @@ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable } } - revert UnableGetTokenOwnerByIndex(); + // Execution should never reach this point. + assert(false); } /**