Always generate code for .selector member access.

This commit is contained in:
Daniel Kirchner
2023-07-18 18:15:32 +02:00
committed by Kamil Śliwak
parent 64427412c4
commit 5c7214cbe3
3 changed files with 20 additions and 0 deletions
@@ -1659,6 +1659,10 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
{
if (functionType->hasDeclaration())
{
// Still visit the expression in case it has side effects.
_memberAccess.expression().accept(*this);
utils().popStackElement(*functionType);
if (functionType->kind() == FunctionType::Kind::Event)
m_context << u256(h256::Arith(util::keccak256(functionType->externalSignature())));
else