diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:39:02 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-03 02:39:02 +0800 |
commit | 36e937f8de348cfdb35ff8f72504aed1dfab07b2 (patch) | |
tree | e8e0ba5b603f07bddf6cd01329e001b06b5987dd /src/utils/utils.ts | |
parent | c6ceb44682a19c9f53505803547fcb2012691b5b (diff) | |
parent | 5925f81fe185a90efaa82dd90bd8d65d74326f11 (diff) | |
download | dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar.gz dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar.bz2 dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar.lz dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar.xz dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.tar.zst dexon-sol-tools-36e937f8de348cfdb35ff8f72504aed1dfab07b2.zip |
Merge branch 'master' into remainingTokenMethods
# Conflicts:
# src/contract_wrappers/token_wrapper.ts
Diffstat (limited to 'src/utils/utils.ts')
-rw-r--r-- | src/utils/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 336eaf7bb..e6840a624 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -18,4 +18,8 @@ export const utils = { isParityNode(nodeVersion: string): boolean { return _.includes(nodeVersion, 'Parity'); }, + isValidOrderHash(orderHashHex: string) { + const isValid = /^0x[0-9A-F]{64}$/i.test(orderHashHex); + return isValid; + }, }; |