Support for solc 0.1.2

This commit is contained in:
Riccardo Casatta 2015-09-07 11:32:57 +02:00
parent 14b4cabb1b
commit a64dc60bab
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Compiler.prototype.init = function(env) {
Compiler.prototype.compile_solidity = function(contractFile) { Compiler.prototype.compile_solidity = function(contractFile) {
var cmd, result, output, json, compiled_object; 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}); result = exec(cmd, {silent: true});
output = result.output; output = result.output;
@ -41,7 +41,7 @@ Compiler.prototype.compile_solidity = function(contractFile) {
compiled_object[className] = {}; compiled_object[className] = {};
compiled_object[className].code = contract.binary; compiled_object[className].code = contract.binary;
compiled_object[className].info = {}; 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; return compiled_object;