From 61ba012b1fa396093842a9dd4f6cdc9e373b4213 Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Sun, 12 Aug 2018 19:32:57 -0500 Subject: Add ERC721 revert reasons to types --- packages/types/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 04480d093..f080fba21 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -224,6 +224,11 @@ export enum RevertReason { InvalidMsgValue = 'INVALID_MSG_VALUE', InsufficientEthRemaining = 'INSUFFICIENT_ETH_REMAINING', Uint256Overflow = 'UINT256_OVERFLOW', + Erc721ZeroToAddress = 'ERC721_ZERO_TO_ADDRESS', + Erc721OwnerMismatch = 'ERC721_OWNER_MISMATCH', + Erc721InvalidSpender = 'ERC721_INVALID_SPENDER', + Erc721ZeroOwner = 'ERC721_ZERO_OWNER', + Erc721InvalidSelector = 'ERC721_INVALID_SELECTOR', } export enum StatusCodes { -- cgit v1.2.3