remove lifetimes

This commit is contained in:
Hardhat Chad
2024-08-25 11:58:08 +00:00
parent 18b87be8ea
commit d164241c40
11 changed files with 32 additions and 72 deletions

View File

@@ -7,10 +7,7 @@ use solana_program::{
use spl_token::state::Mint;
/// Upgrade allows a user to migrate a v1 token to a v2 token at a 1:1 exchange rate.
pub fn process_upgrade<'a, 'info>(
accounts: &'a [AccountInfo<'info>],
data: &[u8],
) -> ProgramResult {
pub fn process_upgrade(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult {
// Parse args
let args = StakeArgs::try_from_bytes(data)?;
let amount = u64::from_le_bytes(args.amount);