Function provwasm_std::unbind_name
source · pub fn unbind_name<S: Into<String>>(
name: S
) -> StdResult<CosmosMsg<ProvenanceMsg>>
Expand description
Create a message that will un-bind a name from an address.
Example
// Imports required
use cosmwasm_std::{Response, StdResult};
use provwasm_std::{unbind_name, ProvenanceMsg};
// Unbind a name
fn exec_unbind_name(name: String) -> StdResult<Response<ProvenanceMsg>> {
let msg = unbind_name(&name)?;
let mut res = Response::new().add_message(msg);
Ok(res)
}