diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 12a73559..b7b5854b 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -7,7 +7,7 @@ const FIFSRegistrar = artifacts.require('./FIFSRegistrar.sol'); // TODO: align the contract name with the source code file name. const Registrar = artifacts.require('./HashRegistrar.sol'); const web3 = new (require('web3'))(); -const namehash = require('eth-ens-namehash'); +const namehash = require('eth-ens-namehash').hash; /** * Calculate root node hashes given the top level domain(tld)