Fix compressed check to avoid setting it to undefined
This commit is contained in:
parent
bf6254d3e2
commit
20aa4a0e8a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue