Fix compressed check to avoid setting it to undefined
This commit is contained in:
parent
bf6254d3e2
commit
20aa4a0e8a
@ -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…
Reference in New Issue
Block a user