Browse Source

Merge pull request #1715 from chriseth/sol_compileToJSON

Actually output assembly in JSON format.
cl-refactor
chriseth 10 years ago
parent
commit
0d48ad1d58
  1. 2
      solc/jsonCompiler.cpp

2
solc/jsonCompiler.cpp

@ -101,7 +101,7 @@ string compile(string _input, bool _optimize)
contractData["bytecode"] = toHex(compiler.getBytecode(contractName)); contractData["bytecode"] = toHex(compiler.getBytecode(contractName));
contractData["opcodes"] = eth::disassemble(compiler.getBytecode(contractName)); contractData["opcodes"] = eth::disassemble(compiler.getBytecode(contractName));
ostringstream unused; ostringstream unused;
contractData["assembly"] = compiler.streamAssembly(unused, contractName, sources); contractData["assembly"] = compiler.streamAssembly(unused, contractName, sources, true);
output["contracts"][contractName] = contractData; output["contracts"][contractName] = contractData;
} }

Loading…
Cancel
Save