Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(External): init external metadata from correct hd node
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore3 committed Apr 3, 2017
1 parent d3cf11c commit fa07e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/external.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/external_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('External', () => {
};

let Metadata = {
fromMasterHDNode (n, masterhdnode) {
fromMetadataHDNode (n, masterhdnode) {
return metaDataInstance;
}
};
Expand Down

0 comments on commit fa07e25

Please sign in to comment.