Browse Source

lodash fixes

patch-2
Matias Alejo Garcia 7 years ago
parent
commit
88e76bd0dd
  1. 2
      lib/hdpublickey.js

2
lib/hdpublickey.js

@ -184,7 +184,7 @@ HDPublicKey.prototype._deriveWithNumber = function(index, hardened) {
HDPublicKey.prototype._deriveFromString = function(path) {
/* jshint maxcomplexity: 8 */
if (_.contains(path, "'")) {
if (_.includes(path, "'")) {
throw new hdErrors.InvalidIndexCantDeriveHardened();
} else if (!HDPublicKey.isValidPath(path)) {
throw new hdErrors.InvalidPath(path);

Loading…
Cancel
Save