diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 02:22:17 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 05:39:08 +0800 |
commit | 4f27991959ba6e4e15839e6195a40b0fd8a2122c (patch) | |
tree | 4bce0a41289737b73ea51e71357f6898d8283350 /packages | |
parent | 8ce4f9c784556e93bde2c58b670bf6efd5d3b7fd (diff) | |
download | dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar.gz dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar.bz2 dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar.lz dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar.xz dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.tar.zst dexon-sol-tools-4f27991959ba6e4e15839e6195a40b0fd8a2122c.zip |
Remove SigntureType.Caller from signingUtils
Diffstat (limited to 'packages')
-rw-r--r-- | packages/order-utils/src/signature_utils.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/order-utils/src/signature_utils.ts b/packages/order-utils/src/signature_utils.ts index 40bbcef98..f8ed9cf9c 100644 --- a/packages/order-utils/src/signature_utils.ts +++ b/packages/order-utils/src/signature_utils.ts @@ -53,11 +53,6 @@ export const signatureUtils = { return signatureUtils.isValidECSignature(prefixedMessageHex, ecSignature, signerAddress); } - case SignatureType.Caller: - // HACK: We currently do not "validate" the caller signature type. - // It can only be validated during Exchange contract execution. - throw new Error('Caller signature type cannot be validated off-chain'); - case SignatureType.Wallet: { const isValid = await signatureUtils.isValidWalletSignatureAsync( provider, |