From a64dc60bab6fb751ef81c57dbe7f408920e1e710 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Mon, 7 Sep 2015 11:32:57 +0200 Subject: [PATCH] Support for solc 0.1.2 --- lib/compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index 7a98aac1..bcac64e6 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -23,7 +23,7 @@ Compiler.prototype.init = function(env) { Compiler.prototype.compile_solidity = function(contractFile) { var cmd, result, output, json, compiled_object; - cmd = "solc --input-file " + contractFile + " --combined-json binary,json-abi"; + cmd = "solc --input-file " + contractFile + " --combined-json bin,abi"; result = exec(cmd, {silent: true}); output = result.output; @@ -41,7 +41,7 @@ Compiler.prototype.compile_solidity = function(contractFile) { compiled_object[className] = {}; compiled_object[className].code = contract.binary; compiled_object[className].info = {}; - compiled_object[className].info.abiDefinition = JSON.parse(contract["json-abi"]); + compiled_object[className].info.abiDefinition = JSON.parse(contract["abi"]); } return compiled_object;