Tighter coupling for Assembly items retrieval

- Exposing only assembly items, not the entire compiler context
This commit is contained in:
Lefteris Karapetsas 2015-02-25 12:02:58 +01:00
parent b480b76015
commit f43f79137b

View File

@ -64,7 +64,7 @@ eth::AssemblyItems compileContract(const string& _sourceCode)
Compiler compiler;
compiler.compileContract(*contract, map<ContractDefinition const*, bytes const*>{});
return compiler.getRuntimeContext().getAssembly().getItems();
return compiler.getRuntimeAssemblyItems();
}
BOOST_FAIL("No contract found in source.");
return AssemblyItems();