Skip to content

Commit 2d0e36f

Browse files
authored
fix: fix filter invalid txs UT (#145)
1 parent 9a3bbfa commit 2d0e36f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/pipe-exec-layer-ext-v2/src

crates/pipe-exec-layer-ext-v2/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,14 @@ mod tests {
816816
use std::collections::HashMap;
817817

818818
// Mock database for testing
819+
#[derive(Debug, Default)]
819820
struct MockDatabase {
820821
accounts: HashMap<Address, AccountInfo>,
821822
}
822823

823824
impl MockDatabase {
824825
fn new() -> Self {
825-
Self { accounts: HashMap::new() }
826+
Self::default()
826827
}
827828

828829
fn insert_account(&mut self, address: Address, account: AccountInfo) {

0 commit comments

Comments
 (0)