cli: Remove passing the rent sysvar account to IDL instructions (#3372)
This commit is contained in:
parent
6dbe5a6ccd
commit
8ec7ec802a
|
@ -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
|
||||
|
||||
|
|
|
@ -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()?);
|
||||
|
|
Loading…
Reference in New Issue