diff --git a/Makefile b/Makefile index 5dbb110..01034df 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ clippy: RISC0_SKIP_BUILD=1 cargo clippy --workspace --all-targets -- -D warnings clippy-guest: - for manifest in token/methods/guest/Cargo.toml amm/methods/guest/Cargo.toml ata/methods/guest/Cargo.toml; do \ + for manifest in token/methods/guest/Cargo.toml amm/methods/guest/Cargo.toml ata/methods/guest/Cargo.toml stablecoin/methods/guest/Cargo.toml; do \ cargo clippy --manifest-path "$$manifest" --all-targets -- -D warnings || exit 1; \ done diff --git a/stablecoin/methods/guest/src/bin/stablecoin.rs b/stablecoin/methods/guest/src/bin/stablecoin.rs index d9ff26e..57cd3fa 100644 --- a/stablecoin/methods/guest/src/bin/stablecoin.rs +++ b/stablecoin/methods/guest/src/bin/stablecoin.rs @@ -1,9 +1,10 @@ -#![no_main] +#![cfg_attr(not(test), no_main)] use nssa_core::account::AccountWithMetadata; use spel_framework::context::ProgramContext; use spel_framework::prelude::*; +#[cfg(not(test))] risc0_zkvm::guest::entry!(main); #[lez_program(instruction = "stablecoin_core::Instruction")]