Skip to content

Commit a64dc60

Browse files
committed
Support for solc 0.1.2
1 parent 14b4cab commit a64dc60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Compiler.prototype.init = function(env) {
2323
Compiler.prototype.compile_solidity = function(contractFile) {
2424
var cmd, result, output, json, compiled_object;
2525

26-
cmd = "solc --input-file " + contractFile + " --combined-json binary,json-abi";
26+
cmd = "solc --input-file " + contractFile + " --combined-json bin,abi";
2727

2828
result = exec(cmd, {silent: true});
2929
output = result.output;
@@ -41,7 +41,7 @@ Compiler.prototype.compile_solidity = function(contractFile) {
4141
compiled_object[className] = {};
4242
compiled_object[className].code = contract.binary;
4343
compiled_object[className].info = {};
44-
compiled_object[className].info.abiDefinition = JSON.parse(contract["json-abi"]);
44+
compiled_object[className].info.abiDefinition = JSON.parse(contract["abi"]);
4545
}
4646

4747
return compiled_object;

0 commit comments

Comments
 (0)