aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parent2cf5208f85bca11a507a5b0e2202f5f6eb531753 (diff)
downloaddexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.gz
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.bz2
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.lz
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.xz
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.tar.zst
dexon-sol-tools-114b5ea0fe78b9b9b5b4fc46e13b21e45f77a628.zip
improve comment
Diffstat (limited to 'src')
-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.