kill rent calculator (#6625)
This commit is contained in:
@ -7,7 +7,7 @@ use solana_sdk::{
|
||||
entrypoint,
|
||||
entrypoint::SUCCESS,
|
||||
pubkey::Pubkey,
|
||||
rent_calculator,
|
||||
rent,
|
||||
sysvar::{
|
||||
clock::Clock, fees::Fees, rent::Rent, rewards::Rewards, slot_hashes::SlotHashes,
|
||||
stake_history::StakeHistory,
|
||||
@ -42,9 +42,8 @@ fn process_instruction(_program_id: &Pubkey, accounts: &mut [AccountInfo], _data
|
||||
|
||||
let rent = Rent::from_account_info(&accounts[7]).unwrap();
|
||||
assert_eq!(
|
||||
rent.rent_calculator.due(
|
||||
rent_calculator::DEFAULT_LAMPORTS_PER_BYTE_YEAR
|
||||
* rent_calculator::DEFAULT_EXEMPTION_THRESHOLD as u64,
|
||||
rent.due(
|
||||
rent::DEFAULT_LAMPORTS_PER_BYTE_YEAR * rent::DEFAULT_EXEMPTION_THRESHOLD as u64,
|
||||
1,
|
||||
1.0
|
||||
),
|
||||
|
Reference in New Issue
Block a user