Replaces keyed_account get_signers() by InstructionContext::get_signers(). (#23863)

This commit is contained in:
Alexander Meißner
2022-03-24 12:57:51 +01:00
committed by GitHub
parent c83c95b56b
commit 91c2729856
4 changed files with 18 additions and 9 deletions

View File

@ -198,6 +198,10 @@ pub fn create_keyed_accounts_unified<'a>(
.collect()
}
#[deprecated(
since = "1.11.0",
note = "Please use InstructionContext::get_signers() instead"
)]
/// Return all the signers from a set of KeyedAccounts
pub fn get_signers<A>(keyed_accounts: &[KeyedAccount]) -> A
where