We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5b68d commit a1ebc8bCopy full SHA for a1ebc8b
solana/programs/example-native-token-transfers/src/instructions/redeem.rs
@@ -22,6 +22,10 @@ pub struct Redeem<'info> {
22
pub payer: Signer<'info>,
23
24
// NOTE: this works when the contract is paused
25
+ #[account(
26
+ constraint = config.next_transceiver_id != 0 @ NTTError::NoRegisteredTransceivers,
27
+ constraint = config.enabled_transceivers.is_empty() @ NTTError::NoRegisteredTransceivers,
28
+ )]
29
pub config: Account<'info, Config>,
30
31
#[account(
0 commit comments