ECKey: remove unnecessary slice

This commit is contained in:
Daniel Cousens 2014-05-17 17:06:02 +10:00
parent cd326921bc
commit aca565239a

View file

@ -35,7 +35,7 @@ ECKey.fromWIF = function(string) {
assert.equal(payload.length, 32, 'Invalid WIF payload length')
var D = BigInteger.fromBuffer(payload.slice(0, 32))
var D = BigInteger.fromBuffer(payload)
return new ECKey(D, compressed)
}