diff --git a/lib/modules/ipfs/embarkjs/name.js b/lib/modules/ipfs/embarkjs/name.js index e477b37f..defc853b 100644 --- a/lib/modules/ipfs/embarkjs/name.js +++ b/lib/modules/ipfs/embarkjs/name.js @@ -21,13 +21,7 @@ __embarkIPFS.register = function(addr, options) { return new Error('No IPFS connection. Please ensure to call Embark.Names.setProvider()'); } - this._ipfsConnection.name.publish("/ipfs/" + addr, options) - .then(res => { - return `https://gateway.ipfs.io/ipns/${res.name}`; - }) - .catch((err) => { - return new Error('Unexpected Error: ' + err); - }); + return this._ipfsConnection.name.publish("/ipfs/" + addr, options); }; __embarkIPFS.lookup = function () {