aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-16 02:59:35 +0800
committerGav Wood <i@gavwood.com>2015-01-16 02:59:35 +0800
commit911916beb7d8fd9c318d43fdf137727d364a95d2 (patch)
tree21ab383a6cc9e08247085146e6936668c6a98a03 /Types.cpp
parent80eec8b308e8af3b742e3da47ded927e4e4b388d (diff)
downloaddexon-solidity-911916beb7d8fd9c318d43fdf137727d364a95d2.tar.gz
dexon-solidity-911916beb7d8fd9c318d43fdf137727d364a95d2.tar.zst
dexon-solidity-911916beb7d8fd9c318d43fdf137727d364a95d2.zip
Add blockhash to Solidity.
Autopadding fix.
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 7ca1dc6d..07d6f6bd 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -656,8 +656,8 @@ MagicType::MagicType(MagicType::Kind _kind):
{
case Kind::BLOCK:
m_members = MemberList({{"coinbase", make_shared<IntegerType>(0, IntegerType::Modifier::ADDRESS)},
- {"timestamp", make_shared<IntegerType >(256)},
- {"prevhash", make_shared<IntegerType>(256, IntegerType::Modifier::HASH)},
+ {"timestamp", make_shared<IntegerType>(256)},
+ {"blockhash", make_shared<FunctionType>(strings{"uint"}, strings{"hash"}, FunctionType::Location::BLOCKHASH)},
{"difficulty", make_shared<IntegerType>(256)},
{"number", make_shared<IntegerType>(256)},
{"gaslimit", make_shared<IntegerType>(256)}});