Browse Source

Fix compressed check to avoid setting it to undefined

hk-custom-address
Andreas Brekken 11 years ago
parent
commit
20aa4a0e8a
  1. 2
      src/eckey.js

2
src/eckey.js

@ -36,7 +36,7 @@ ECKey.prototype.import = function (input,compressed) {
: null : null
this.compressed = this.compressed =
arguments.length > 1 ? compressed compressed !== undefined ? compressed
: input instanceof ECKey ? input.compressed : input instanceof ECKey ? input.compressed
: input instanceof BigInteger ? false : input instanceof BigInteger ? false
: util.isArray(input) ? false : util.isArray(input) ? false

Loading…
Cancel
Save