From ed85c9b3de83acaa47e79c50412fbcd2c17b7a31 Mon Sep 17 00:00:00 2001 From: Henry-E Date: Sat, 18 Dec 2021 18:11:43 +0000 Subject: [PATCH] spl: Remove token program account infos (#1123) --- spl/src/token.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/spl/src/token.rs b/spl/src/token.rs index 8655321cf..4d4a5a2e5 100644 --- a/spl/src/token.rs +++ b/spl/src/token.rs @@ -28,7 +28,6 @@ pub fn transfer<'a, 'b, 'c, 'info>( ctx.accounts.from.clone(), ctx.accounts.to.clone(), ctx.accounts.authority.clone(), - ctx.program.clone(), ], ctx.signer_seeds, ) @@ -52,7 +51,6 @@ pub fn mint_to<'a, 'b, 'c, 'info>( ctx.accounts.to.clone(), ctx.accounts.mint.clone(), ctx.accounts.authority.clone(), - ctx.program.clone(), ], ctx.signer_seeds, ) @@ -76,7 +74,6 @@ pub fn burn<'a, 'b, 'c, 'info>( ctx.accounts.to.clone(), ctx.accounts.mint.clone(), ctx.accounts.authority.clone(), - ctx.program.clone(), ], ctx.signer_seeds, ) @@ -100,7 +97,6 @@ pub fn approve<'a, 'b, 'c, 'info>( ctx.accounts.to.clone(), ctx.accounts.delegate.clone(), ctx.accounts.authority.clone(), - ctx.program.clone(), ], ctx.signer_seeds, ) @@ -122,7 +118,6 @@ pub fn initialize_account<'a, 'b, 'c, 'info>( ctx.accounts.mint.clone(), ctx.accounts.authority.clone(), ctx.accounts.rent.clone(), - ctx.program.clone(), ], ctx.signer_seeds, ) @@ -206,11 +201,7 @@ pub fn initialize_mint<'a, 'b, 'c, 'info>( )?; solana_program::program::invoke_signed( &ix, - &[ - ctx.accounts.mint.clone(), - ctx.accounts.rent.clone(), - ctx.program.clone(), - ], + &[ctx.accounts.mint.clone(), ctx.accounts.rent.clone()], ctx.signer_seeds, ) } @@ -238,7 +229,6 @@ pub fn set_authority<'a, 'b, 'c, 'info>( &[ ctx.accounts.account_or_mint.clone(), ctx.accounts.current_authority.clone(), - ctx.program.clone(), ], ctx.signer_seeds, )