diff --git a/lang/src/idl.rs b/lang/src/idl.rs index 8960ec1604..cf2f1a42ef 100644 --- a/lang/src/idl.rs +++ b/lang/src/idl.rs @@ -86,7 +86,7 @@ pub struct IdlSetBuffer<'info> { // // Note: we use the same account for the "write buffer", similar to the // bpf upgradeable loader's mechanism. -#[account("internal")] +#[account(constraint = "internal")] #[derive(Debug)] pub struct IdlAccount { // Address that can modify the IDL. diff --git a/tests/lockup/programs/lockup/src/lib.rs b/tests/lockup/programs/lockup/src/lib.rs index d7013d861a..86005a0b5f 100644 --- a/tests/lockup/programs/lockup/src/lib.rs +++ b/tests/lockup/programs/lockup/src/lib.rs @@ -293,7 +293,7 @@ pub struct WhitelistTransfer<'info> { bump = vesting.nonce, )] vesting_signer: AccountInfo<'info>, - #[account("token_program.key == &token::ID")] + #[account(constraint = "token_program.key == &token::ID")] token_program: AccountInfo<'info>, #[account(mut)] whitelisted_program_vault: AccountInfo<'info>, diff --git a/tests/lockup/programs/registry/src/lib.rs b/tests/lockup/programs/registry/src/lib.rs index d0577b3411..d6b4127cb9 100644 --- a/tests/lockup/programs/registry/src/lib.rs +++ b/tests/lockup/programs/registry/src/lib.rs @@ -570,7 +570,7 @@ pub struct Initialize<'info> { registrar: Account<'info, Registrar>, #[account(zero)] reward_event_q: Account<'info, RewardQueue>, - #[account("pool_mint.decimals == 0")] + #[account(constraint = "pool_mint.decimals == 0")] pool_mint: Account<'info, Mint>, } @@ -621,7 +621,7 @@ pub struct CreateMember<'info> { balances_locked: BalanceSandboxAccounts<'info>, member_signer: AccountInfo<'info>, // Misc. - #[account("token_program.key == &token::ID")] + #[account(constraint = "token_program.key == &token::ID")] token_program: AccountInfo<'info>, } @@ -952,7 +952,7 @@ pub struct ClaimReward<'info> { pub struct ClaimRewardLocked<'info> { cmn: ClaimRewardCommon<'info>, registry: ProgramState<'info, Registry>, - #[account("lockup_program.key == ®istry.lockup_program")] + #[account(constraint = "lockup_program.key == ®istry.lockup_program")] lockup_program: AccountInfo<'info>, }