aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-02 15:59:10 +0800
committerFabio Berger <me@fabioberger.com>2017-06-02 15:59:10 +0800
commit114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628 (patch)
treea662270206ae8bd4b6d8ab4cee26883b22cf5d3a /src/0x.js.ts
parent2cf5208f85bca11a507a5b0e2202f5f6eb531753 (diff)
downloaddexon-0x-contracts-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.gz
dexon-0x-contracts-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.zst
dexon-0x-contracts-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.zip
improve comment
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r--src/0x.js.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 666fd00c6..0e9d71586 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -69,7 +69,10 @@ export class ZeroEx {
const salt = randomNumber.times(factor).round();
return salt;
}
- /** Checks if order hash is valid */
+ /**
+ * Checks if the supplied hex encoded order hash is valid.
+ * Note: Valid means it has the expected format, not that an order with the orderHash exists.
+ */
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.