eth-dcent-keyring
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,3 @@ const { EventEmitter } = require('events') | ||
const DcentConnector = require('dcent-web-connector') | ||
const { getFullPath, getCoinType } = require('./scripts/util') | ||
@@ -29,4 +30,2 @@ const DefaultKeyPathString = `m/44'/60'/0'/0/0` | ||
// this.paths = {} | ||
this.coinType = DcentConnector.coinType.ETHEREUM | ||
this.path = DefaultKeyPathString | ||
this.deserialize(opts) | ||
@@ -40,2 +39,3 @@ DcentConnector.setTimeOutMs(opts.timeOut || DCENT_TIMEOUT) | ||
_accounts: this._accounts, | ||
hdPath: this.hdPath, | ||
// page: this.page, | ||
@@ -51,4 +51,7 @@ // paths: this.paths, | ||
this._accounts = opts._accounts || [] | ||
this.hdPath = opts.hdPath || DefaultKeyPathString | ||
// this.page = opts.page || 0 | ||
// this.perPage = opts.perPage || 1 | ||
this.path = getFullPath(this.hdPath, 0) | ||
this.coinType = getCoinType(this.path) | ||
return Promise.resolve() | ||
@@ -55,0 +58,0 @@ } |
{ | ||
"name": "eth-dcent-keyring", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A MetaMask compatible keyring, for D'CENT hardware wallets", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31019
13
669