From 6ad1900ada799eec18e870f48de785af14780a60 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 13 Jun 2017 15:52:50 +0200 Subject: Refactor subscription to return zeroExSignature object --- src/utils/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/utils.ts') 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 { -- cgit v1.2.3