diff --git a/contracts/plus/swapmap/src/contract.rs b/contracts/plus/swapmap/src/contract.rs index 2574233..d52b175 100755 --- a/contracts/plus/swapmap/src/contract.rs +++ b/contracts/plus/swapmap/src/contract.rs @@ -88,7 +88,9 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult { fn query_tx(deps: Deps, hash: Binary) -> StdResult { // same StdErr can use ? - let hash = MAPPED_TXS.load(deps.storage, hash.as_slice())?; + let hash = MAPPED_TXS + .load(deps.storage, hash.as_slice()) + .unwrap_or_default(); to_json_binary(&hash) }