From ee93c6bb8ce969cf6e4910d80b183f1d11e853d1 Mon Sep 17 00:00:00 2001 From: enitrat Date: Tue, 17 Sep 2024 15:28:11 +0200 Subject: [PATCH] fix test' --- crates/evm/src/instructions/logging_operations.cairo | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/evm/src/instructions/logging_operations.cairo b/crates/evm/src/instructions/logging_operations.cairo index 5d827e1f1..66cb952fa 100644 --- a/crates/evm/src/instructions/logging_operations.cairo +++ b/crates/evm/src/instructions/logging_operations.cairo @@ -144,7 +144,7 @@ mod tests { let event = events.pop_front().unwrap(); assert_eq!(event.keys.len(), 1); - assert_eq!(event.keys[0], 0x0123456789ABCDEF); + assert_eq!(event.keys.span(), [0x0123456789ABCDEF].span()); assert_eq!(event.data.len(), 32); let data_expected = u256_to_bytes_array(Bounded::::MAX).span().slice(0, 32); @@ -175,8 +175,7 @@ mod tests { let event = events.pop_front().unwrap(); assert_eq!(event.keys.len(), 2); - assert_eq!(event.keys[0], 0x0123456789ABCDEF); - assert_eq!(event.keys[1], Bounded::::MAX); + assert_eq!(event.keys.span(), [0x0123456789ABCDEF, Bounded::::MAX].span()); assert_eq!(event.data.len(), 5); let data_expected = u256_to_bytes_array(Bounded::::MAX).span().slice(0, 5);