aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-14 00:08:30 +0800
committerGitHub <noreply@github.com>2017-06-14 00:08:30 +0800
commit2a56ab084631ed56718820beccc4df05590d0a6e (patch)
tree4744a89c36f28f6e679418805289456e7b03c941 /src/utils/utils.ts
parent52dc6b77104792852eb7cdffb4a088b35b46f2be (diff)
parentac8116bbe4a615fd70cb4ae22713ca36db3ee963 (diff)
downloaddexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar.gz
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar.bz2
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar.lz
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar.xz
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.tar.zst
dexon-sol-tools-2a56ab084631ed56718820beccc4df05590d0a6e.zip
Merge pull request #64 from 0xProject/events
Refactor events API
Diffstat (limited to 'src/utils/utils.ts')
-rw-r--r--src/utils/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 5786bab07..bad5b6498 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -22,11 +22,11 @@ export const utils = {
isParityNode(nodeVersion: string): boolean {
return _.includes(nodeVersion, 'Parity');
},
- isValidOrderHash(orderHashHex: string) {
+ isValidOrderHash(orderHashHex: string): boolean {
const isValid = /^0x[0-9A-F]{64}$/i.test(orderHashHex);
return isValid;
},
- spawnSwitchErr(name: string, value: any) {
+ spawnSwitchErr(name: string, value: any): Error {
return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
},
getOrderHashHex(order: Order|SignedOrder, exchangeContractAddr: string): string {