Pārlūkot izejas kodu

cli: Remove passing the rent sysvar account to IDL instructions (#3372)

acheron 10 mēneši atpakaļ
vecāks
revīzija
8ec7ec802a
2 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 0
      CHANGELOG.md
  2. 0 3
      cli/src/lib.rs

+ 1 - 0
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
 

+ 0 - 3
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()?);