mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding event and error selector fields on the lines of the function selector fields
This commit is contained in:
committed by
chriseth
parent
2cb29dbd35
commit
d4c06d2b4e
@@ -3335,6 +3335,12 @@ MemberList::MemberMap FunctionType::nativeMembers(ASTNode const* _scope) const
|
||||
}
|
||||
case Kind::Error:
|
||||
return {{"selector", TypeProvider::fixedBytes(4)}};
|
||||
case Kind::Event:
|
||||
{
|
||||
if (!(dynamic_cast<EventDefinition const&>(declaration()).isAnonymous()))
|
||||
return {{"selector", TypeProvider::fixedBytes(32)}};
|
||||
return MemberList::MemberMap();
|
||||
}
|
||||
default:
|
||||
return MemberList::MemberMap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user