cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
645 stars 330 forks source link

Chore: Typo in getContractInfo doc comments #1468

Open LeTurt333 opened 1 year ago

LeTurt333 commented 1 year ago

I think there's a typo in the doc comments for getContractInfo

    /**
     * Returns null when contract was not found at this address.
     */
    readonly getContractInfo: (address: string) => Promise<QueryContractInfoResponse>;

But if the contract doesn't exist, it throws instead of returning null

Error: Query failed with (6): address someaddr1: no such contract: unknown request