aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-05 01:27:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-05 01:27:31 +0800
commitb1c7291d3cfffb11a13c50a518f2b895bcdc9fc5 (patch)
tree72fe9bb7fc42e4dc3ec6c55483d7acb1406da8eb /src/utils/utils.ts
parent5611df82f9f276fb161fa268f7ab468a6c1d7784 (diff)
downloaddexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar.gz
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar.bz2
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar.lz
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar.xz
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.tar.zst
dexon-sol-tools-b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5.zip
Use orderHashSchema to validate order hash
Diffstat (limited to 'src/utils/utils.ts')
-rw-r--r--src/utils/utils.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 061e9f99a..ecc171bfe 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -25,10 +25,6 @@ export const utils = {
isTestRpc(nodeVersion: string): boolean {
return _.includes(nodeVersion, 'TestRPC');
},
- isValidOrderHash(orderHashHex: string): boolean {
- const isValid = /^0x[0-9A-F]{64}$/i.test(orderHashHex);
- return isValid;
- },
spawnSwitchErr(name: string, value: any): Error {
return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
},