mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Actually output assembly in JSON format.
This commit is contained in:
parent
be3f9e2681
commit
61c7f29b46
@ -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…
Reference in New Issue
Block a user