Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit bb3fb37

Browse files
PhilippLghholgerd77
authored andcommitted
chore: run linter
1 parent 751cf0d commit bb3fb37

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

lib/rpc/modules/admin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Admin {
2929

3030
/**
3131
* Returns information about the currently running node.
32-
* see for reference: https://geth.ethereum.org/docs/rpc/ns-admin#admin_nodeinfo
32+
* see for reference: https://geth.ethereum.org/docs/rpc/ns-admin#admin_nodeinfo
3333
* @param {*} [params] An empty array
3434
* @param {*} [cb] A function with an error object as the first argument and the
3535
*/
@@ -69,4 +69,4 @@ export class Admin {
6969
}
7070
return cb(null, nodeInfo)
7171
}
72-
}
72+
}

lib/util/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict'
2+
3+
const { platform } = require('os')
4+
const packageVersion = require('../../package.json').version
5+
6+
/**
7+
* @module util
8+
*/
9+
10+
exports.parse = require('./parse')
11+
exports.short = (buffer) => buffer.toString('hex').slice(0, 8) + '...'
12+
exports.getClientVersion = () => {
13+
const { version } = process
14+
return `EthereumJS/${packageVersion}/${platform()}/node${version.substring(1)}`
15+
}

0 commit comments

Comments
 (0)