diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-12-21 07:35:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 07:35:26 +0800 |
commit | 9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3 (patch) | |
tree | 87b38e76cc52301a4b4fd259c83f3eb69414fe85 /packages/contract-wrappers/src/utils/constants.ts | |
parent | 5ec1ae5f7f488d20130d68ed422fac769b843f93 (diff) | |
parent | 56af9b2aab26fd6a774d0b345ce8e1441bb1a9e0 (diff) | |
download | dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.gz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.bz2 dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.lz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.xz dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.tar.zst dexon-sol-tools-9b540fd8e52e7578d3749e6d9ef9cd97d602ffb3.zip |
Merge pull request #1434 from 0xProject/fix/instant/signature-denied
[instant] fix signature denial error message and add trust wallet detection
Diffstat (limited to 'packages/contract-wrappers/src/utils/constants.ts')
-rw-r--r-- | packages/contract-wrappers/src/utils/constants.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contract-wrappers/src/utils/constants.ts b/packages/contract-wrappers/src/utils/constants.ts index c587ba526..94afdc112 100644 --- a/packages/contract-wrappers/src/utils/constants.ts +++ b/packages/contract-wrappers/src/utils/constants.ts @@ -14,5 +14,6 @@ export const constants = { ZERO_AMOUNT: new BigNumber(0), ONE_AMOUNT: new BigNumber(1), ETHER_TOKEN_DECIMALS: 18, - USER_DENIED_SIGNATURE_PATTERN: 'User denied transaction signature', + METAMASK_USER_DENIED_SIGNATURE_PATTERN: 'User denied transaction signature', + TRUST_WALLET_USER_DENIED_SIGNATURE_PATTERN: 'cancelled', }; |