// Query join proposal by ID.
Query join proposal by ID.
Query join proposal by ID .
fn try_get_join_proposal(deps: Deps, id: String) -> Result<QueryResponse, ContractError> {
    let address = deps.api.addr_validate(&id)?;
    let key = address.as_bytes();
    let proposal = join_proposals_read(deps.storage).load(key)?;
    let bin = to_binary(&proposal)?;
    Ok(bin)
}
fn try_get_join_proposal ( deps : Deps , id : String ) -> Result < QueryResponse , ContractError > { let address = deps . api . addr_validate ( & id ) ? ; let key = address . as_bytes ( ) ; let proposal = join_proposals_read ( deps . storage ) . load ( key ) ? ; let bin = to_binary ( & proposal ) ? ; Ok ( bin ) }
Query join proposal by ID.
Query join proposal by ID .
deps
Deps
id
String