From 6cf9fca41d1403ee047a8d67eecfd022af4e7a6d Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 11 Dec 2024 12:37:07 +0100 Subject: [PATCH] sync --- examples/log.rs | 2 +- zink/codegen/src/event.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/log.rs b/examples/log.rs index 6179bfeee..05dde178b 100644 --- a/examples/log.rs +++ b/examples/log.rs @@ -25,7 +25,6 @@ pub mod event_tests { /// Test log0 #[zink::external] - #[allow(path_statements)] pub fn test_log0() { MyEvent::Topic0; } @@ -77,6 +76,7 @@ mod tests { { // Test log0 let info = contract.execute(&[b"test_log0()".to_vec()]).unwrap(); + assert!(!info.logs.is_empty()); assert_eq!( info.logs[0].data.data.to_vec(), name.to_vec().to_bytes32().to_vec() diff --git a/zink/codegen/src/event.rs b/zink/codegen/src/event.rs index 3a06dcc9f..81672617a 100644 --- a/zink/codegen/src/event.rs +++ b/zink/codegen/src/event.rs @@ -5,7 +5,6 @@ use syn::{ Result, Type, Variant, }; - /// Custom error type for better error handling #[derive(Debug)] enum EventError {