Use Rent sysvar directly for stake split instruction (#24008)

* Use Rent sysvar directly for stake split ix

* Add feature to gate rent sysvar change

* fix tests

* cargo clippy
This commit is contained in:
Justin Starry
2022-03-31 16:46:35 +08:00
committed by GitHub
parent 210d98bc06
commit cb5e67d327
8 changed files with 264 additions and 81 deletions

View File

@ -1333,6 +1333,7 @@ mod tests {
instruction_data,
transaction_accounts,
instruction_accounts,
None,
expected_result,
super::process_instruction,
)
@ -1585,6 +1586,7 @@ mod tests {
&[],
vec![(program_id, program_account.clone())],
Vec::new(),
None,
Err(InstructionError::ProgramFailedToComplete),
|first_instruction_account: usize,
instruction_data: &[u8],
@ -2855,6 +2857,7 @@ mod tests {
&instruction_data,
transaction_accounts,
instruction_accounts,
None,
expected_result,
super::process_instruction,
)