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

@ -216,6 +216,7 @@ mod tests {
instruction_data,
transaction_accounts,
instruction_accounts,
None,
expected_result,
super::process_instruction,
)
@ -233,6 +234,7 @@ mod tests {
instruction_data,
transaction_accounts,
instruction_accounts,
None,
expected_result,
|first_instruction_account: usize,
instruction_data: &[u8],