Skip to content

Commit

Permalink
fix test'
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 17, 2024
1 parent 9d0ad17 commit ee93c6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/evm/src/instructions/logging_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u256>::MAX).span().slice(0, 32);
Expand Down Expand Up @@ -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::<u256>::MAX);
assert_eq!(event.keys.span(), [0x0123456789ABCDEF, Bounded::<u256>::MAX].span());

assert_eq!(event.data.len(), 5);
let data_expected = u256_to_bytes_array(Bounded::<u256>::MAX).span().slice(0, 5);
Expand Down

0 comments on commit ee93c6b

Please sign in to comment.