Skip to content

Commit 07ba285

Browse files
committed
feat: switch to std
1 parent 2fee890 commit 07ba285

File tree

1 file changed

+2
-2
lines changed
  • polimec-common/test-utils/src

1 file changed

+2
-2
lines changed

polimec-common/test-utils/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use jwt_compact::{alg::Ed25519, AlgorithmExt, Header};
2020
use polimec_common::credentials::{InvestorType, SampleClaims, UntrustedToken};
2121

2222
/// Fetches a JWT from a dummy Polimec JWT producer that will return a JWT with the specified investor type
23-
#[cfg(not(feature = "runtime-benchmarks"))]
23+
#[cfg(feature = "std")]
2424
pub fn get_test_jwt<AccountId: core::fmt::Display>(
2525
account_id: AccountId,
2626
investor_type: InvestorType,
@@ -80,7 +80,7 @@ pub fn get_mock_jwt<AccountId: frame_support::Serialize>(
8080
/// Fetches a JWT from a dummy Polimec JWT producer that will return a JWT with the specified
8181
/// investor type and a random signing key. This is useful for testing the signature
8282
/// verification logic.
83-
#[cfg(not(feature = "runtime-benchmarks"))]
83+
#[cfg(feature = "std")]
8484
pub fn get_fake_jwt<AccountId: core::fmt::Display>(
8585
account_id: AccountId,
8686
investor_type: InvestorType,

0 commit comments

Comments
 (0)