aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-14 00:28:58 +0800
committerchriseth <chris@ethereum.org>2018-03-14 00:34:21 +0800
commit834d63de2c4dc9c119862f8bf25b4f7c9f408d6e (patch)
treea75716c1431f68e71a9005250b446fedacf779f2 /libsolidity
parent7a066efd7e0f371cfaee69c1f6b5f0aed1bfd107 (diff)
downloaddexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar.gz
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar.bz2
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar.lz
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar.xz
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.tar.zst
dexon-solidity-834d63de2c4dc9c119862f8bf25b4f7c9f408d6e.zip
Allow ``block.blockhash`` without being called.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 7162cb0d..f50628ff 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1147,6 +1147,9 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
else if (member == "sig")
m_context << u256(0) << Instruction::CALLDATALOAD
<< (u256(0xffffffff) << (256 - 32)) << Instruction::AND;
+ else if (member == "blockhash")
+ {
+ }
else
solAssert(false, "Unknown magic member.");
break;