Browse Source

Actually output assembly in JSON format.

cl-refactor
chriseth 10 years ago
parent
commit
2aebb723ef
  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["opcodes"] = eth::disassemble(compiler.getBytecode(contractName));
ostringstream unused;
contractData["assembly"] = compiler.streamAssembly(unused, contractName, sources);
contractData["assembly"] = compiler.streamAssembly(unused, contractName, sources, true);
output["contracts"][contractName] = contractData;
}

Loading…
Cancel
Save