Skip to content

Commit

Permalink
fix: use debug_assert_eq in on_finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshiposha committed Jun 24, 2024
1 parent 0b08553 commit edc28ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pub mod pallet {
));
}
Pending::<T>::kill();
assert_eq!(<CurrentLogs<T>>::get().len(), 0, "fake transaction finalizer is not initialized, as some logs was left after block is finished");
debug_assert_eq!(<CurrentLogs<T>>::get().len(), 0, "fake transaction finalizer is not initialized, as some logs was left after block is finished");
}

fn on_initialize(_: BlockNumberFor<T>) -> Weight {
Expand Down

0 comments on commit edc28ca

Please sign in to comment.