aboutsummaryrefslogtreecommitdiffstats
path: root/Assembly.h
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-06-29 01:23:32 +0800
committerGav Wood <i@gavwood.com>2014-06-29 01:23:32 +0800
commit674ff8e3cc1e95a351d14683db7b67a7822d5aa3 (patch)
tree7e1badfab76588f9d5675d3fbd3d113593449c71 /Assembly.h
parent5e2b4bbd58f1d244d1aab985e07835071692d7a5 (diff)
downloaddexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.gz
dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.zst
dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.zip
Full python serpent support.
Shared libs on all platforms.
Diffstat (limited to 'Assembly.h')
-rw-r--r--Assembly.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assembly.h b/Assembly.h
index 29f899c0..3e8a8326 100644
--- a/Assembly.h
+++ b/Assembly.h
@@ -70,8 +70,8 @@ class Assembly
public:
AssemblyItem newTag() { return AssemblyItem(Tag, m_usedTags++); }
AssemblyItem newPushTag() { return AssemblyItem(PushTag, m_usedTags++); }
- AssemblyItem newData(bytes const& _data) { auto h = sha3(_data); m_data[h] = _data; return AssemblyItem(PushData, h); }
- AssemblyItem newPushString(std::string const& _data) { auto h = sha3(_data); m_strings[h] = _data; return AssemblyItem(PushString, h); }
+ AssemblyItem newData(bytes const& _data) { h256 h = (u256)std::hash<std::string>()(asString(_data)); m_data[h] = _data; return AssemblyItem(PushData, h); }
+ AssemblyItem newPushString(std::string const& _data) { h256 h = (u256)std::hash<std::string>()(_data); m_strings[h] = _data; return AssemblyItem(PushString, h); }
AssemblyItem append() { return append(newTag()); }
void append(Assembly const& _a);