adhere to standard 5.0.0

This commit is contained in:
Daniel Cousens 2015-08-13 14:25:32 +10:00
parent e97389ed08
commit 56160622ca
3 changed files with 13 additions and 24 deletions

View file

@ -74,7 +74,7 @@ HDNode.fromBase58 = function (string, networks) {
}
if (version !== network.bip32.private &&
version !== network.bip32.public) throw new Error('Invalid network')
version !== network.bip32.public) throw new Error('Invalid network')
// 1 byte: depth: 0x00 for master nodes, 0x01 for level-1 descendants, ...
var depth = buffer.readUInt8(4)