diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 5720cb4b9..3d4383301 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1281,7 +1281,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) if (FunctionCall const* funCall = dynamic_cast(&_memberAccess.expression())) if (auto const* addr = dynamic_cast(&funCall->expression())) if ( - addr->typeName().token() == Token::Address && + addr->type().typeName().token() == Token::Address && funCall->arguments().size() == 1 ) if (auto arg = dynamic_cast( funCall->arguments().front().get()))