diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-13 22:59:42 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-13 22:59:42 +0800 |
commit | 12e000e0d327ead61092c890d0e5a359a9b9a54d (patch) | |
tree | 0e2e54e42c7ceab279ff82351c244f40a344df10 /Compiler.h | |
parent | a253abf0623aec5ebbf8fa8b4ec3b00596c724ee (diff) | |
download | dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.gz dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.tar.zst dexon-solidity-12e000e0d327ead61092c890d0e5a359a9b9a54d.zip |
A first version of Natspec warning popup
- Runtime Contract code hash can now be retrieved from the Compiler
- Using the hash the Natspec handler stores and later retrieves Natspec
JSON for a given contract.
Diffstat (limited to 'Compiler.h')
-rw-r--r-- | Compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -35,6 +35,7 @@ public: void compileContract(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals, std::map<ContractDefinition const*, bytes const*> const& _contracts); bytes getAssembledBytecode() { return m_context.getAssembledBytecode(m_optimize); } + bytes getRuntimeBytecode() { return m_runtimeContext.getAssembledBytecode(m_optimize);} void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); } private: @@ -70,6 +71,7 @@ private: bool const m_optimize; CompilerContext m_context; + CompilerContext m_runtimeContext; std::vector<eth::AssemblyItem> m_breakTags; ///< tag to jump to for a "break" statement std::vector<eth::AssemblyItem> m_continueTags; ///< tag to jump to for a "continue" statement eth::AssemblyItem m_returnTag; ///< tag to jump to for a "return" statement |