pub fn redeem(
        &mut self,
        executor: &Addr,
        amount: u128,
        code: impl Into<String>,
        sender: impl Into<Option<String>>,
        memo: impl Into<String>,
    ) -> Result<AppResponse> {
        self.app
            .execute_contract(
                executor.clone(),
                self.cash.addr(),
                &ExecuteMsg::Redeem {
                    amount: amount.into(),
                    code: code.into(),
                    sender: sender.into().map(Into::into),
                    memo: memo.into(),
                },
                &[],
            )
            .map_err(|err| anyhow!(err))
    }
/// Executes redeem on `cash`
Executes redeem on `cash`
Executes redeem on ` cash `
pub fn redeem(
        &mut self,
        executor: &Addr,
        amount: u128,
        code: impl Into<String>,
        sender: impl Into<Option<String>>,
        memo: impl Into<String>,
    ) -> Result<AppResponse> {
        self.app
            .execute_contract(
                executor.clone(),
                self.cash.addr(),
                &ExecuteMsg::Redeem {
                    amount: amount.into(),
                    code: code.into(),
                    sender: sender.into().map(Into::into),
                    memo: memo.into(),
                },
                &[],
            )
            .map_err(|err| anyhow!(err))
    }
pub fn redeem ( & mut self , executor : & Addr , amount : u128 , code : impl Into < String > , sender : impl Into < Option < String > > , memo : impl Into < String > , ) -> Result < AppResponse > { self . app . execute_contract ( executor . clone ( ) , self . cash . addr ( ) , & ExecuteMsg :: Redeem { amount : amount . into ( ) , code : code . into ( ) , sender : sender . into ( ) . map ( Into :: into ) , memo : memo . into ( ) , } , & [ ] , ) . map_err ( | err | anyhow ! ( err ) ) }
Executes redeem on `cash`
Executes redeem on ` cash `
&mut self
executor
&Addr
amount
u128
code
impl Into<String>
sender
impl Into<Option<String>>
memo
impl Into<String>
&mut self
executor
&Addr
amount
u128
code
impl Into<String>
sender
impl Into<Option<String>>
memo
impl Into<String>