diff --git a/lib/credentials.js b/lib/credentials.js index 3b001160..84b7d6ef 100644 --- a/lib/credentials.js +++ b/lib/credentials.js @@ -119,7 +119,7 @@ Credentials.fromExtendedPublicKey = function(xPubKey, source, index, entropySour var entropyBuffer = new Buffer(entropySourceHex, 'hex'); //require at least 112 bits of entropy - $.checkArgument(entropyBuffer.length >= 14, 'No enough entropy') + $.checkArgument(entropyBuffer.length >= 14, 'At least 112 bits of entropy are needed') var x = new Credentials(); x.xPubKey = xPubKey; diff --git a/test/client.js b/test/client.js index 0d493dbd..98c10efd 100644 --- a/test/client.js +++ b/test/client.js @@ -2023,7 +2023,7 @@ describe('client API', function() { }); }); }); - it('should failt to import with external priv key when not enough entropy', function() { + it('should fail to import with external priv key when not enought entropy', function() { var client = helpers.newClient(app); (function() { client.seedFromExtendedPublicKey('xpub661MyMwAqRbcGVyYUcHbZi9KNhN9Tdj8qHi9ZdoUXP1VeKiXDGGrE9tSoJKYhGFE2rimteYdwvoP6e87zS5LsgcEvsvdrpPBEmeWz9EeAUq', 'ledger', 2, '1a1f00');