Fix assert

This commit is contained in:
Anton Bukov 2023-05-09 13:54:41 +02:00
parent 1d40bb4940
commit 7ffbfe6781

View File

@ -4189,7 +4189,7 @@ MemberList::MemberMap MagicType::nativeMembers(ASTNode const*) const
});
case Kind::MetaType:
{
solAssert(!m_typeArgument, "");
solAssert(m_typeArgument, "");
if (m_typeArgument->category() == Type::Category::Contract)
{
ContractDefinition const& contract = dynamic_cast<ContractType const&>(*m_typeArgument).contractDefinition();