From c4e8d3754d143020faf4a3cd36f80682f4b0d5f4 Mon Sep 17 00:00:00 2001 From: Anton Bukov Date: Tue, 9 May 2023 12:34:38 +0200 Subject: [PATCH] Fix compilation error --- libsolidity/codegen/ExpressionCompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 5ca059ab7..a53fa4627 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1934,7 +1934,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) else if (member == "typehash") { Type const* arg = dynamic_cast(*_memberAccess.expression().annotation().type).typeArgument(); - solAssert(dynamic_cast(arg), "typehash called on a non-struct type") + solAssert(dynamic_cast(arg), "typehash called on a non-struct type"); StructDefinition const& struct_ = dynamic_cast(*arg).structDefinition(); m_context << struct_.typehash(); }