pub fn execute_gift(
    mut deps: DepsMut,
    env: Env,
    info: MessageInfo,
    encoded_tickets: String,
    to: String,
    operator_addr: Option<String>,
) -> Result<Response, ContractError> {
    if to == info.sender {
        return Err(ContractError::GiftToSelf {});
    }
    deposit(
        deps.branch(),
        env,
        info,
        Some(to),
        operator_addr,
        encoded_tickets,
    )
}
// Gift several tickets at once to a given address
Gift several tickets at once to a given address
Gift several tickets at once to a given address
pub fn execute_gift(
    mut deps: DepsMut,
    env: Env,
    info: MessageInfo,
    encoded_tickets: String,
    to: String,
    operator_addr: Option<String>,
) -> Result<Response, ContractError> {
    if to == info.sender {
        return Err(ContractError::GiftToSelf {});
    }
    deposit(
        deps.branch(),
        env,
        info,
        Some(to),
        operator_addr,
        encoded_tickets,
    )
}
pub fn execute_gift ( mut deps : DepsMut , env : Env , info : MessageInfo , encoded_tickets : String , to : String , operator_addr : Option < String > , ) -> Result < Response , ContractError > { if to == info . sender { return Err ( ContractError :: GiftToSelf { } ) ; } deposit ( deps . branch ( ) , env , info , Some ( to ) , operator_addr , encoded_tickets , ) }
Gift several tickets at once to a given address
Gift several tickets at once to a given address
deps
DepsMut
env
Env
info
MessageInfo
encoded_tickets
String
to
String
operator_addr
Option<String>
deps
DepsMut
env
Env
info
MessageInfo
encoded_tickets
String
to
String
operator_addr
Option<String>