Add ipns resolve

This commit is contained in:
Anthony Laibe 2018-07-26 14:03:35 +01:00 committed by Iuri Matias
parent a273a988f6
commit 65ca4e0e3d

View File

@ -113,6 +113,7 @@ class IPFS {
let code = "";
code += "\n" + fs.readFileSync(utils.joinPath(__dirname, 'embarkjs', 'storage.js')).toString();
code += "\nEmbarkJS.Storage.registerProvider('ipfs', __embarkIPFS);";
code += "\nEmbarkJS.Names.registerProvider('ipns', __embarkIPFS);";
this.embark.addCodeToEmbarkJS(code);
}