From 422676aef2df241f1efbf553842227419766bed9 Mon Sep 17 00:00:00 2001 From: Anton Bukov Date: Tue, 9 May 2023 12:17:08 +0200 Subject: [PATCH] Update libsolidity/ast/Types.cpp Co-authored-by: Hari --- libsolidity/ast/Types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index b132e4ff8..743e381f7 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -4189,7 +4189,7 @@ MemberList::MemberMap MagicType::nativeMembers(ASTNode const*) const }); case Kind::MetaType: { - solAssert(m_typeArgument != nullptr, ""); + solAssert(!m_typeArgument, ""); if (m_typeArgument->category() == Type::Category::Contract) { ContractDefinition const& contract = dynamic_cast(*m_typeArgument).contractDefinition();