diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-29 22:32:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 22:32:32 +0800 |
commit | 041394e652db09b6f90e1057beb657b159dc0e56 (patch) | |
tree | c3547c43f02c119798af6f15485d73be570392e7 /src/utils/utils.ts | |
parent | abd0228ba8b71b35ff089fc647674caa08d7a24e (diff) | |
parent | 19581429366909038a7a3fa21eef09d466c150e0 (diff) | |
download | dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar.gz dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar.bz2 dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar.lz dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar.xz dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.tar.zst dexon-sol-tools-041394e652db09b6f90e1057beb657b159dc0e56.zip |
Merge pull request #17 from 0xProject/addSignOrderHashAndTests
Add signOrderHashAsync and tests
Diffstat (limited to 'src/utils/utils.ts')
-rw-r--r-- | src/utils/utils.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts index b514b702d..336eaf7bb 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,3 +1,4 @@ +import * as _ from 'lodash'; import * as BN from 'bn.js'; export const utils = { @@ -11,8 +12,10 @@ export const utils = { return new BN(value.toString(), 10); }, consoleLog(message: string): void { - /* tslint:disable */ + // tslint:disable-next-line: no-console console.log(message); - /* tslint:enable */ + }, + isParityNode(nodeVersion: string): boolean { + return _.includes(nodeVersion, 'Parity'); }, }; |