aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-29 19:37:08 +0800
committerFabio Berger <me@fabioberger.com>2017-05-29 19:37:08 +0800
commiteb90367fc4fc666786398ab9803b77bfb900c661 (patch)
tree711e4e92060828508e22d6cace759a4d47ad1ec4 /src/utils
parent232e03195974403878f303a59f0ff8669b54f205 (diff)
downloaddexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar.gz
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar.bz2
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar.lz
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar.xz
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.tar.zst
dexon-sol-tools-eb90367fc4fc666786398ab9803b77bfb900c661.zip
Port over signOrderHashAsync
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index b514b702d..2098a67b3 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 = {
@@ -15,4 +16,7 @@ export const utils = {
console.log(message);
/* tslint:enable */
},
+ isParityNode(nodeVersion: string): boolean {
+ return _.includes(nodeVersion, 'Parity');
+ },
};