Skip to content

Commit

Permalink
sdk: Add deprecation warning to solana_program::nonce
Browse files Browse the repository at this point in the history
#### Problem

As pointed out at
#3370 (comment),
the solana-nonce crate re-export in solana-program does not have a
deprecated warning.

#### Summary of changes

Add the warning.
  • Loading branch information
joncinque committed Nov 5, 2024
1 parent b39364f commit 4daa6e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/program/src/nonce.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down

0 comments on commit 4daa6e4

Please sign in to comment.