From 8ec7ec802a1a7d678b35501cccc7ea80fe24cc86 Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:01:42 +0100 Subject: [PATCH] cli: Remove passing the rent sysvar account to IDL instructions (#3372) --- CHANGELOG.md | 1 + cli/src/lib.rs | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49e764c3b9..4c731173e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,6 +95,7 @@ The minor version will be incremented upon a breaking change and the patch versi - cli: Fix priority fee calculation causing panic on localnet ([#3318](https://github.com/coral-xyz/anchor/pull/3318)). - cli: Fix `shell` command failing due to outdated program initialization ([#3351](https://github.com/coral-xyz/anchor/pull/3351)). - idl: Fix detecting false-positives from doc comments during module path conversion ([#3359](https://github.com/coral-xyz/anchor/pull/3359)). +- cli: Remove passing the rent sysvar account to IDL instructions ([#3372](https://github.com/coral-xyz/anchor/pull/3372)). ### Breaking diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 52b22d724d..ac90750112 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -35,7 +35,6 @@ use solana_sdk::compute_budget::ComputeBudgetInstruction; use solana_sdk::pubkey::Pubkey; use solana_sdk::signature::Keypair; use solana_sdk::signature::Signer; -use solana_sdk::sysvar; use solana_sdk::transaction::Transaction; use std::collections::BTreeMap; use std::collections::HashMap; @@ -3974,7 +3973,6 @@ fn create_idl_account( AccountMeta::new_readonly(program_signer, false), AccountMeta::new_readonly(solana_program::system_program::ID, false), AccountMeta::new_readonly(*program_id, false), - AccountMeta::new_readonly(solana_program::sysvar::rent::ID, false), ]; instructions.push(Instruction { program_id: *program_id, @@ -4064,7 +4062,6 @@ fn create_idl_buffer( let accounts = vec![ AccountMeta::new(buffer.pubkey(), false), AccountMeta::new_readonly(keypair.pubkey(), true), - AccountMeta::new_readonly(sysvar::rent::ID, false), ]; let mut data = anchor_lang::idl::IDL_IX_TAG.to_le_bytes().to_vec(); data.append(&mut IdlInstruction::CreateBuffer.try_to_vec()?);