diff --git a/lib/modules/ens/register.js b/lib/modules/ens/register.js index 761eff9c..8ea9f924 100644 --- a/lib/modules/ens/register.js +++ b/lib/modules/ens/register.js @@ -28,7 +28,7 @@ function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain, }) // Set name for reverse node .then(_result => { - return secureSend(web3, resolver.methods.setName(reverseNode, subdomain + '.embark.eth'), {from: defaultAccount}, false); + return secureSend(web3, resolver.methods.setName(reverseNode, `${subdomain}.${rootDomain}`), {from: defaultAccount}, false); }) .then(_result => { callback(null, transaction);