diff --git a/contracts/claims-processor/src/lib.rs b/contracts/claims-processor/src/lib.rs index d8370af..2666a5d 100644 --- a/contracts/claims-processor/src/lib.rs +++ b/contracts/claims-processor/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(dead_code)] -#![allow(unused_imports)] // Address/state validation must fail with a typed contract error so callers // can match on it programmatically, never with a raw panic! and a string // message. diff --git a/contracts/oracle-verifier/src/lib.rs b/contracts/oracle-verifier/src/lib.rs index e8333d2..8a14c28 100644 --- a/contracts/oracle-verifier/src/lib.rs +++ b/contracts/oracle-verifier/src/lib.rs @@ -176,11 +176,9 @@ pub enum Error { // ─── Contract ───────────────────────────────────────────────────────────────── -#[cfg(any(test, feature = "testutils", not(feature = "library")))] #[contract] pub struct OracleVerifier; -#[cfg(any(test, feature = "testutils", not(feature = "library")))] #[contractimpl] impl OracleVerifier { // ── Lifecycle ──────────────────────────────────────────────────────────── diff --git a/contracts/policy-engine/src/lib.rs b/contracts/policy-engine/src/lib.rs index 52399a7..44f3088 100644 --- a/contracts/policy-engine/src/lib.rs +++ b/contracts/policy-engine/src/lib.rs @@ -64,7 +64,6 @@ const ADMIN_TRANSFER_TIMELOCK: u64 = 48 * 60 * 60; /// Upper bound on the number of policies `batch_buy_policy` will create in one /// call, so a single transaction cannot blow Soroban's instruction budget. -#[cfg(any(test, feature = "testutils", not(feature = "library")))] const MAX_BATCH_BUY: u32 = 20; // ─── Pagination ─────────────────────────────────────────────────────────────── @@ -72,7 +71,6 @@ const MAX_BATCH_BUY: u32 = 20; /// Upper bound on the number of entries a paginated query will return in one /// call. Without a cap, a caller could pass `limit = u32::MAX` and force the /// contract to build one huge `Vec`, blowing Soroban's instruction budget. -#[cfg(any(test, feature = "testutils", not(feature = "library")))] const MAX_PAGE_SIZE: u32 = 100; // ─── Storage keys ───────────────────────────────────────────────────────────── @@ -190,11 +188,9 @@ pub enum Error { // ─── Contract ───────────────────────────────────────────────────────────────── -#[cfg(any(test, feature = "testutils", not(feature = "library")))] #[contract] pub struct PolicyEngine; -#[cfg(any(test, feature = "testutils", not(feature = "library")))] #[contractimpl] impl PolicyEngine {