From eae52835f0d7fa7a3a9296e496db4d033bcfdba0 Mon Sep 17 00:00:00 2001 From: Shreyan Gupta Date: Fri, 8 Mar 2024 14:19:08 +0530 Subject: [PATCH 1/2] [fix] Fix statelessnet github CI --- core/parameters/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/parameters/Cargo.toml b/core/parameters/Cargo.toml index 0d1fcd2885e..39a0de7cc02 100644 --- a/core/parameters/Cargo.toml +++ b/core/parameters/Cargo.toml @@ -39,4 +39,5 @@ nightly = [ nightly_protocol = [ "near-primitives-core/nightly_protocol", ] +statelessnet_protocol = [] calimero_zero_storage = [] From 9ad3e6c946d4fe11a5fec4e96bd5c38891692192 Mon Sep 17 00:00:00 2001 From: Shreyan Gupta Date: Fri, 8 Mar 2024 14:35:44 +0530 Subject: [PATCH 2/2] fix --- core/parameters/Cargo.toml | 4 +++- core/parameters/src/view.rs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/parameters/Cargo.toml b/core/parameters/Cargo.toml index 39a0de7cc02..62bc4f4e25c 100644 --- a/core/parameters/Cargo.toml +++ b/core/parameters/Cargo.toml @@ -39,5 +39,7 @@ nightly = [ nightly_protocol = [ "near-primitives-core/nightly_protocol", ] -statelessnet_protocol = [] +statelessnet_protocol = [ + "near-primitives-core/statelessnet_protocol", +] calimero_zero_storage = [] diff --git a/core/parameters/src/view.rs b/core/parameters/src/view.rs index 3b54294defe..39487c24989 100644 --- a/core/parameters/src/view.rs +++ b/core/parameters/src/view.rs @@ -611,12 +611,12 @@ impl From for crate::ExtCostsConfig { } #[cfg(test)] +#[cfg(not(feature = "nightly"))] +#[cfg(not(feature = "statelessnet_protocol"))] mod tests { /// The JSON representation used in RPC responses must not remove or rename /// fields, only adding fields is allowed or we risk breaking clients. #[test] - #[cfg_attr(feature = "nightly", ignore)] - #[cfg_attr(feature = "statelessnet_protocol", ignore)] fn test_runtime_config_view() { use crate::view::RuntimeConfigView; use crate::RuntimeConfig;