pub async fn approve_checked<S2: Signer>(
        &self,
        source: &Pubkey,
        delegate: &Pubkey,
        authority: &S2,
        amount: u64,
        decimals: u8,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[instruction::approve_checked(
                &self.program_id,
                source,
                &self.pubkey,
                delegate,
                &authority.pubkey(),
                &[],
                amount,
                decimals,
            )?],
            &[authority],
        )
        .await
    }
/// Approve a delegate to spend tokens, with decimal check
Approve a delegate to spend tokens, with decimal check
Approve a delegate to spend tokens with decimal check
pub async fn approve_checked<S2: Signer>(
        &self,
        source: &Pubkey,
        delegate: &Pubkey,
        authority: &S2,
        amount: u64,
        decimals: u8,
    ) -> TokenResult<T::Output> {
        self.process_ixs(
            &[instruction::approve_checked(
                &self.program_id,
                source,
                &self.pubkey,
                delegate,
                &authority.pubkey(),
                &[],
                amount,
                decimals,
            )?],
            &[authority],
        )
        .await
    }
pub async fn approve_checked < S2 : Signer > ( & self , source : & Pubkey , delegate : & Pubkey , authority : & S2 , amount : u64 , decimals : u8 , ) -> TokenResult < T :: Output > { self . process_ixs ( & [ instruction :: approve_checked ( & self . program_id , source , & self . pubkey , delegate , & authority . pubkey ( ) , & [ ] , amount , decimals , ) ? ] , & [ authority ] , ) . await }
Approve a delegate to spend tokens, with decimal check
Approve a delegate to spend tokens with decimal check
&self
source
&Pubkey
delegate
&Pubkey
authority
&S2
amount
u64
decimals
u8
&self
source
&Pubkey
delegate
&Pubkey
authority
&S2
amount
u64
decimals
u8