diff options
author | chriseth <c@ethdev.com> | 2015-10-06 23:44:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-06 23:44:39 +0800 |
commit | b4c46201ef8c46594f442e9b11bf22a8a04b642e (patch) | |
tree | 7fc17cdc9968636610a2728e8c77e74f70d7eb46 /Assembly.h | |
parent | 4b77b09148c22b182575612240d70040c699c353 (diff) | |
download | dexon-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |