From b4c46201ef8c46594f442e9b11bf22a8a04b642e Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 6 Oct 2015 17:44:39 +0200 Subject: Add non-const sub function. --- Assembly.h | 1 + 1 file changed, 1 insertion(+) 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); -- cgit