Commit d3bf04af authored by Adrien Béraud's avatar Adrien Béraud

nodejs: update contract loading for new solc versions

Change-Id: I867dfa0ba03c264fc10666ece42a30f5b66cbb95
parent 9cda8ea9
......@@ -101,7 +101,7 @@ function loadContract() {
console.log("Can't read contract ABI: " + err);
else {
var REG = JSON.parse(data);
regABI = JSON.parse(REG.contracts.registrar.GlobalRegistrar.abi);
regABI = REG.contracts.registrar.GlobalRegistrar.abi;
}
console.log("Loading name contract from blockchain at " + regAddress);
web3.eth.getCode(regAddress, function(error, result) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment