diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-03 01:53:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-03 01:53:01 +0800 |
commit | 5925f81fe185a90efaa82dd90bd8d65d74326f11 (patch) | |
tree | 12daf7aec686c576634b2daa5a58af2831cc497d /src/utils/utils.ts | |
parent | 2ff8f4ca6ed238f331cb69aaeb912a94b3df901e (diff) | |
parent | 35c9330d6246183509a3543cdf1278b9ced191e2 (diff) | |
download | dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar.gz dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar.bz2 dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar.lz dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar.xz dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.tar.zst dexon-sol-tools-5925f81fe185a90efaa82dd90bd8d65d74326f11.zip |
Merge pull request #31 from 0xProject/unavailableFilledCancelled
Implement Unavailable, Filled and Cancelled
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; + }, }; |