aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-29 22:32:32 +0800
committerGitHub <noreply@github.com>2017-05-29 22:32:32 +0800
commit041394e652db09b6f90e1057beb657b159dc0e56 (patch)
treec3547c43f02c119798af6f15485d73be570392e7 /src/utils/utils.ts
parentabd0228ba8b71b35ff089fc647674caa08d7a24e (diff)
parent19581429366909038a7a3fa21eef09d466c150e0 (diff)
downloaddexon-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.ts7
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');
},
};