Skip to content

Commit

Permalink
fix: Fix build with all features enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
netrome committed Feb 19, 2025
1 parent 79ef630 commit cfa53f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions crates/proof_system/global_merkle_root/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ fuel-core-types = { workspace = true, default-features = false, features = [
"test-helpers",
] }
rand = { workspace = true }

[features]
fault-proving = [
"fuel-core-types/fault-proving",
"fuel-core-storage/fault-proving",
"fuel-core-global-merkle-root-storage/fault-proving",
]
10 changes: 9 additions & 1 deletion crates/proof_system/global_merkle_root/service/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,15 @@ fn random_block(
let outbox_message_ids = &[];
let event_inbox_root = Bytes32::default();

Block::new(header, transactions, outbox_message_ids, event_inbox_root).unwrap()
Block::new(
header,
transactions,
outbox_message_ids,
event_inbox_root,
#[cfg(feature = "fault-proving")]
&ChainId::default(),
)
.unwrap()
}

fn random_transaction(rng: &mut StdRng) -> Transaction {
Expand Down
4 changes: 4 additions & 0 deletions crates/proof_system/global_merkle_root/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ rand = { workspace = true }
[features]
std = ["fuel-core-storage/std", "fuel-core-types/std"]
test-helpers = ["dep:rand"]
fault-proving = [
"fuel-core-types/fault-proving",
"fuel-core-storage/fault-proving",
]

0 comments on commit cfa53f3

Please sign in to comment.