message: cosmwasm-stargate: Harmonise CosmWasmClient.getAccount method
diff: @@ -109,20 +109,25 @@ export class CosmWasmClient {
  }
  public async getAccount(searchAddress: string): Promise<Account | null> {
  + try {
  const account = await this.forceGetQueryClient().auth.account(searchAddress);
  return account ? accountFromAny(account) : null;
  + } catch (error) {
  + if (/rpc error: code = NotFound/i.test(error)) {
  + return null;
  + }
  + throw error;
  + }
  }
  public async getSequence(address: string): Promise<SequenceResponse | null> {
  const account = await this.getAccount(address);
  - if (account) {
  - return {
  + return account
  + ? {
  accountNumber: account.accountNumber,
  sequence: account.sequence,
  - };
  - } else {
  - return null;
  }
  + : null;
  }
  public async getBlock(height?: number): Promise<Block> {
  