mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tighter coupling for Assembly items retrieval
- Exposing only assembly items, not the entire compiler context
This commit is contained in:
parent
b480b76015
commit
f43f79137b
@ -64,7 +64,7 @@ eth::AssemblyItems compileContract(const string& _sourceCode)
|
|||||||
Compiler compiler;
|
Compiler compiler;
|
||||||
compiler.compileContract(*contract, map<ContractDefinition const*, bytes const*>{});
|
compiler.compileContract(*contract, map<ContractDefinition const*, bytes const*>{});
|
||||||
|
|
||||||
return compiler.getRuntimeContext().getAssembly().getItems();
|
return compiler.getRuntimeAssemblyItems();
|
||||||
}
|
}
|
||||||
BOOST_FAIL("No contract found in source.");
|
BOOST_FAIL("No contract found in source.");
|
||||||
return AssemblyItems();
|
return AssemblyItems();
|
||||||
|
Loading…
Reference in New Issue
Block a user