From 5bd64675af51f177624b3d5713a6b0c77bf9b1ac Mon Sep 17 00:00:00 2001 From: Xia Wu Date: Tue, 4 Aug 2020 23:09:08 +0800 Subject: [PATCH] fix deploy error bug #362 --- migrations/2_deploy_contracts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)