From 8ca2f52041cfe16cb014e51c28ba13f1e47f4df3 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 08:51:05 +0000 Subject: [PATCH] Make `initialize` public (#17605) (#17607) (cherry picked from commit 2896fc3987ef9d7dbc53f416d3a0f9350d821370) Co-authored-by: Michael Vines --- programs/stake/src/stake_instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/stake/src/stake_instruction.rs b/programs/stake/src/stake_instruction.rs index 410bb1000b..fb20a38ad5 100644 --- a/programs/stake/src/stake_instruction.rs +++ b/programs/stake/src/stake_instruction.rs @@ -186,7 +186,7 @@ pub struct AuthorizeWithSeedArgs { pub authority_owner: Pubkey, } -fn initialize(stake_pubkey: &Pubkey, authorized: &Authorized, lockup: &Lockup) -> Instruction { +pub fn initialize(stake_pubkey: &Pubkey, authorized: &Authorized, lockup: &Lockup) -> Instruction { Instruction::new_with_bincode( id(), &StakeInstruction::Initialize(*authorized, *lockup),