pub fn destroy_marker<S: Into<String>>(
denom: S,
) -> StdResult<CosmosMsg<ProvenanceMsg>>Expand description
Create a message that will destroy a marker.
ยงExample
// Imports required
use cosmwasm_std::{Response, StdResult};
use provwasm_std::{destroy_marker, ProvenanceMsg};
// Create and dispatch a message that will destroy a marker.
fn try_destroy_marker(denom: String) -> StdResult<Response<ProvenanceMsg>> {
let msg = destroy_marker(&denom)?;
let mut res = Response::new().add_message(msg);
Ok(res)
}