Use Networks.get with 2 args when possible

This commit is contained in:
eordano 2015-03-29 22:25:19 -03:00
parent 4f4b2b93fb
commit 662099a36e
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ HDPrivateKey.prototype.inspect = function() {
*/
HDPrivateKey.prototype.toObject = function toObject() {
return {
network: Network.get(BufferUtil.integerFromBuffer(this._buffers.version)).name,
network: Network.get(BufferUtil.integerFromBuffer(this._buffers.version), 'xprivkey').name,
depth: BufferUtil.integerFromSingleByteBuffer(this._buffers.depth),
fingerPrint: BufferUtil.integerFromBuffer(this.fingerPrint),
parentFingerPrint: BufferUtil.integerFromBuffer(this._buffers.parentFingerPrint),