Skip to content

Commit

Permalink
Assert on failure (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent authored Feb 9, 2022
1 parent 7b3038e commit 430da07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/ERC721A.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error UnableDetermineTokenOwner();
error UnableGetTokenOwnerByIndex();
error URIQueryForNonexistentToken();

/**
Expand Down Expand Up @@ -123,7 +122,8 @@ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
}
}

revert UnableGetTokenOwnerByIndex();
// Execution should never reach this point.
assert(false);
}

/**
Expand Down

0 comments on commit 430da07

Please sign in to comment.