From 31d8b761be003bbbc6a38c2ab39b7359d3fee420 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Wed, 17 May 2023 22:17:49 +0000 Subject: [PATCH] fix error message again --- vyper/semantics/analysis/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vyper/semantics/analysis/local.py b/vyper/semantics/analysis/local.py index 20b1c5aa89..790cee52d6 100644 --- a/vyper/semantics/analysis/local.py +++ b/vyper/semantics/analysis/local.py @@ -545,7 +545,7 @@ def visit_Log(self, node): raise StructureException("Value is not an event", node.value) if self.func.mutability <= StateMutability.VIEW: raise StructureException( - f"Cannot emit logs from {self.func.mutability.lower()} functions", node + f"Cannot emit logs from {self.func.mutability.value.lower()} functions", node ) f.fetch_call_return(node.value) self.expr_visitor.visit(node.value)