Return NoSuchContract system error instead of sdk error in ContractInfo query
This commit is contained in:
@@ -487,7 +487,7 @@ func WasmQuerier(k wasmQueryKeeper) func(ctx sdk.Context, request *wasmvmtypes.W
|
||||
}
|
||||
info := k.GetContractInfo(ctx, addr)
|
||||
if info == nil {
|
||||
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownAddress, request.ContractInfo.ContractAddr)
|
||||
return nil, wasmvmtypes.NoSuchContract{Addr: request.ContractInfo.ContractAddr}
|
||||
}
|
||||
|
||||
res := wasmvmtypes.ContractInfoResponse{
|
||||
|
||||
Reference in New Issue
Block a user