Merge pull request #3725 from ethereum/blockhashNoCall

Allow ``block.blockhash`` without it being called.
This commit is contained in:
chriseth
2018-03-14 18:04:40 +01:00
committed by GitHub
3 changed files with 21 additions and 0 deletions
@@ -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;