aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/signature_utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/order-utils/src/signature_utils.ts')
-rw-r--r--packages/order-utils/src/signature_utils.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/order-utils/src/signature_utils.ts b/packages/order-utils/src/signature_utils.ts
index 8cd4264ab..70637e2ac 100644
--- a/packages/order-utils/src/signature_utils.ts
+++ b/packages/order-utils/src/signature_utils.ts
@@ -34,9 +34,10 @@ export async function isValidSignatureAsync(
case SignatureType.Invalid:
return false;
- // Question: Does it make sense to handle this?
case SignatureType.Caller:
- return true;
+ // 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');
// TODO: Rename this type to `EthSign` b/c multiple of the signature
// types use ECRecover...