aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/utils.ts
diff options
context:
space:
mode:
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');
},
};