Skip to content

Commit 41ccea0

Browse files
committed
fix: Fix build with all features enabled
1 parent 32d5a8c commit 41ccea0

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

crates/proof_system/global_merkle_root/service/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ fuel-core-types = { workspace = true, default-features = false, features = [
3535
"test-helpers",
3636
] }
3737
rand = { workspace = true }
38+
39+
[features]
40+
fault-proving = [
41+
"fuel-core-types/fault-proving",
42+
"fuel-core-storage/fault-proving",
43+
"fuel-core-global-merkle-root-storage/fault-proving",
44+
]

crates/proof_system/global_merkle_root/service/src/tests.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,15 @@ fn random_block(
151151
let outbox_message_ids = &[];
152152
let event_inbox_root = Bytes32::default();
153153

154-
Block::new(header, transactions, outbox_message_ids, event_inbox_root).unwrap()
154+
Block::new(
155+
header,
156+
transactions,
157+
outbox_message_ids,
158+
event_inbox_root,
159+
#[cfg(feature = "fault-proving")]
160+
&ChainId::default(),
161+
)
162+
.unwrap()
155163
}
156164

157165
fn random_transaction(rng: &mut StdRng) -> Transaction {

crates/proof_system/global_merkle_root/storage/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ rand = { workspace = true }
4444
[features]
4545
std = ["fuel-core-storage/std", "fuel-core-types/std"]
4646
test-helpers = ["dep:rand"]
47+
fault-proving = [
48+
"fuel-core-types/fault-proving",
49+
"fuel-core-storage/fault-proving",
50+
]

0 commit comments

Comments
 (0)