From 20aa4a0e8af7ba69e59f27060074c5066523ef1e Mon Sep 17 00:00:00 2001 From: Andreas Brekken Date: Sat, 11 Jan 2014 13:55:53 +0700 Subject: [PATCH] Fix compressed check to avoid setting it to undefined --- src/eckey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eckey.js b/src/eckey.js index d2082c2..f0f4a2d 100644 --- a/src/eckey.js +++ b/src/eckey.js @@ -36,7 +36,7 @@ ECKey.prototype.import = function (input,compressed) { : null this.compressed = - arguments.length > 1 ? compressed + compressed !== undefined ? compressed : input instanceof ECKey ? input.compressed : input instanceof BigInteger ? false : util.isArray(input) ? false