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
+2 -1
View File
@@ -3825,7 +3825,8 @@ MemberList::MemberMap MagicType::nativeMembers(ASTNode const*) const
{"blockhash", TypeProvider::function(strings{"uint"}, strings{"bytes32"}, FunctionType::Kind::BlockHash, false, StateMutability::View)},
{"difficulty", TypeProvider::uint256()},
{"number", TypeProvider::uint256()},
{"gaslimit", TypeProvider::uint256()}
{"gaslimit", TypeProvider::uint256()},
{"chainid", TypeProvider::uint256()}
});
case Kind::Message:
return MemberList::MemberMap({