From 4daa6e452590be5c2121eb2b721d8205473c63d1 Mon Sep 17 00:00:00 2001 From: Jon C Date: Tue, 5 Nov 2024 12:27:26 +0100 Subject: [PATCH] sdk: Add deprecation warning to `solana_program::nonce` #### Problem As pointed out at https://github.com/anza-xyz/agave/pull/3370#issuecomment-2447743597, the solana-nonce crate re-export in solana-program does not have a deprecated warning. #### Summary of changes Add the warning. --- sdk/program/src/nonce.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/program/src/nonce.rs b/sdk/program/src/nonce.rs index 5dc9f571f1468a..ebbbf9b062e7c9 100644 --- a/sdk/program/src/nonce.rs +++ b/sdk/program/src/nonce.rs @@ -1,5 +1,7 @@ +#[deprecated(since = "2.1.0", note = "Use `solana-nonce` crate instead")] pub use solana_nonce::{state::State, NONCED_TX_MARKER_IX_INDEX}; pub mod state { + #[deprecated(since = "2.1.0", note = "Use `solana-nonce` crate instead")] pub use solana_nonce::{ state::{Data, DurableNonce, State}, versions::{AuthorizeNonceError, Versions},