aboutsummaryrefslogtreecommitdiffstats
path: root/Assembly.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-06 23:44:39 +0800
committerchriseth <c@ethdev.com>2015-10-06 23:44:39 +0800
commitb4c46201ef8c46594f442e9b11bf22a8a04b642e (patch)
tree7fc17cdc9968636610a2728e8c77e74f70d7eb46 /Assembly.h
parent4b77b09148c22b182575612240d70040c699c353 (diff)
downloaddexon-solidity-b4c46201ef8c46594f442e9b11bf22a8a04b642e.tar.gz
dexon-solidity-b4c46201ef8c46594f442e9b11bf22a8a04b642e.tar.zst
dexon-solidity-b4c46201ef8c46594f442e9b11bf22a8a04b642e.zip
Add non-const sub function.
Diffstat (limited to 'Assembly.h')
-rw-r--r--Assembly.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assembly.h b/Assembly.h
index d18f9489..28328277 100644
--- a/Assembly.h
+++ b/Assembly.h
@@ -52,6 +52,7 @@ public:
AssemblyItem newData(bytes const& _data) { h256 h(sha3(asString(_data))); m_data[h] = _data; return AssemblyItem(PushData, h); }
AssemblyItem newSub(Assembly const& _sub) { m_subs.push_back(_sub); return AssemblyItem(PushSub, m_subs.size() - 1); }
Assembly const& sub(size_t _sub) const { return m_subs.at(_sub); }
+ Assembly& sub(size_t _sub) { return m_subs.at(_sub); }
AssemblyItem newPushString(std::string const& _data) { h256 h(sha3(_data)); m_strings[h] = _data; return AssemblyItem(PushString, h); }
AssemblyItem newPushSubSize(u256 const& _subId) { return AssemblyItem(PushSubSize, _subId); }
AssemblyItem newPushLibraryAddress(std::string const& _identifier);