Skip to content

Commit

Permalink
fix: match Hardhat by continueing to mine blocks until there are no p…
Browse files Browse the repository at this point in the history
…ending transactions
  • Loading branch information
Wodann committed Dec 6, 2023
1 parent e3aac13 commit 821d03d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/edr_provider/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,14 @@ impl ProviderData {
}
}

while self.mem_pool.has_pending_transactions() {
self.mine_and_commit_block(None).map_err(|error| {
self.revert_to_snapshot(snapshot_id);

error
})?;
}

self.snapshots.remove(&snapshot_id);
}

Expand Down

0 comments on commit 821d03d

Please sign in to comment.