diff --git a/crates/proof_system/global_merkle_root/service/Cargo.toml b/crates/proof_system/global_merkle_root/service/Cargo.toml index 68cb7789e1..fd46e5617d 100644 --- a/crates/proof_system/global_merkle_root/service/Cargo.toml +++ b/crates/proof_system/global_merkle_root/service/Cargo.toml @@ -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", +] diff --git a/crates/proof_system/global_merkle_root/service/src/tests.rs b/crates/proof_system/global_merkle_root/service/src/tests.rs index df3483cce7..900f90bd00 100644 --- a/crates/proof_system/global_merkle_root/service/src/tests.rs +++ b/crates/proof_system/global_merkle_root/service/src/tests.rs @@ -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 { diff --git a/crates/proof_system/global_merkle_root/storage/Cargo.toml b/crates/proof_system/global_merkle_root/storage/Cargo.toml index 499abf6100..aec5c65785 100644 --- a/crates/proof_system/global_merkle_root/storage/Cargo.toml +++ b/crates/proof_system/global_merkle_root/storage/Cargo.toml @@ -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", +]