aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/0x.js.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index b42d5dee1..666fd00c6 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -71,6 +71,8 @@ export class ZeroEx {
}
/** Checks if order hash is valid */
public static isValidOrderHash(orderHashHex: string): boolean {
+ // Since this method can be called to check if any arbitrary string conforms to an orderHash's
+ // format, we only assert that we were indeed passed a string.
assert.isString('orderHashHex', orderHashHex);
const isValidOrderHash = utils.isValidOrderHash(orderHashHex);
return isValidOrderHash;