diff --git a/src/external.js b/src/external.js index 80fd0643a..4cce8198c 100644 --- a/src/external.js +++ b/src/external.js @@ -88,7 +88,7 @@ External.prototype.toJSON = function () { }; External.initMetadata = function (wallet) { - return Metadata.fromMasterHDNode(wallet._metadataHDNode, METADATA_TYPE_EXTERNAL); + return Metadata.fromMetadataHDNode(wallet._metadataHDNode, METADATA_TYPE_EXTERNAL); }; External.fromJSON = function (wallet, json, magicHash) { diff --git a/tests/external_spec.js b/tests/external_spec.js index dc59b1083..14a327481 100644 --- a/tests/external_spec.js +++ b/tests/external_spec.js @@ -20,7 +20,7 @@ describe('External', () => { }; let Metadata = { - fromMasterHDNode (n, masterhdnode) { + fromMetadataHDNode (n, masterhdnode) { return metaDataInstance; } };