Introduce block.chainid

This commit is contained in:
Alex Beregszaszi
2020-12-10 17:07:54 +00:00
parent d0551b67d7
commit 7cd05bf603
13 changed files with 42 additions and 2 deletions
@@ -1576,6 +1576,8 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
m_context << Instruction::ORIGIN;
else if (member == "gasprice")
m_context << Instruction::GASPRICE;
else if (member == "chainid")
m_context << Instruction::CHAINID;
else if (member == "data")
m_context << u256(0) << Instruction::CALLDATASIZE;
else if (member == "sig")