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

Commit

Permalink
Merge pull request #327 from novakov-alexey/truffle-migrate-fix
Browse files Browse the repository at this point in the history
use "then" combinator to map over Promise value
  • Loading branch information
makoto committed Mar 30, 2019
2 parents c368c07 + 89561f7 commit 834aaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function deployFIFSRegistrar(deployer, tld) {
})
.then(function() {
// Transfer the owner of the `rootNode` to the FIFSRegistrar
ENS.at(ENS.address).setSubnodeOwner('0x0', rootNode.sha3, FIFSRegistrar.address);
return ENS.at(ENS.address).then((c) => c.setSubnodeOwner('0x0', rootNode.sha3, FIFSRegistrar.address));
});
}

Expand All @@ -60,7 +60,7 @@ function deployAuctionRegistrar(deployer, tld) {
})
.then(function() {
// Transfer the owner of the `rootNode` to the HashRegistrar
ENS.at(ENS.address).setSubnodeOwner('0x0', rootNode.sha3, Registrar.address);
return ENS.at(ENS.address).then((c) => c.setSubnodeOwner('0x0', rootNode.sha3, Registrar.address));
});
}

Expand Down

0 comments on commit 834aaf9

Please sign in to comment.