Skip to content

Commit

Permalink
Replace block_id macro def with testenv tx util
Browse files Browse the repository at this point in the history
- import testenv crate
- delete common module and import `block_id` from
testenv crate

[issue: #1602]
  • Loading branch information
tvpeter committed Sep 14, 2024
1 parent b65f74b commit e26be1e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ serde = ["dep:serde", "bitcoin/serde", "hashbrown?/serde"]

[dev-dependencies]
bdk_chain = { path = "../chain" }
bdk_testenv = { path = "../testenv", default-features = false }
9 changes: 0 additions & 9 deletions crates/core/tests/common.rs

This file was deleted.

4 changes: 1 addition & 3 deletions crates/core/tests/test_checkpoint.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#[macro_use]
mod common;

use bdk_core::CheckPoint;
use bdk_testenv::block_id;

/// Inserting a block that already exists in the checkpoint chain must always succeed.
#[test]
Expand Down

0 comments on commit e26be1e

Please sign in to comment.