Skip to content

Commit

Permalink
fix: fix provider to Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
phamnam1805 committed Oct 27, 2022
1 parent 08c7c4f commit 4f1bfa6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
SigningStargateClientOptions,
} from '@cosmjs/stargate';

import { provider } from '../providers';
import { Provider } from '../providers';

export interface WalletOptions {
readonly cosmWasmOptions?: SigningCosmWasmClientOptions;
Expand All @@ -25,11 +25,11 @@ export class Wallet {
private _signer: OfflineSigner;
private _cosmWasmSigner: SigningCosmWasmClient;
private _stargateSigner: SigningStargateClient;
private _provider: provider;
private _provider: Provider;
private _account: AccountData;

public static async getWalletFromMnemonic(
provider: provider,
provider: Provider,
mnemonic: string,
options?: WalletOptions
): Promise<Wallet> {
Expand Down Expand Up @@ -66,7 +66,7 @@ export class Wallet {
}

public static async getWalletsFromMnemonic(
provider: provider,
provider: Provider,
mnemonic: string,
amount: number,
options?: WalletOptions
Expand Down Expand Up @@ -117,7 +117,7 @@ export class Wallet {
}

public static async getWalletsFromOfflineSigner(
provider: provider,
provider: Provider,
signer: OfflineSigner,
options?: WalletOptions
): Promise<Wallet[]> {
Expand Down Expand Up @@ -156,7 +156,7 @@ export class Wallet {
}

private constructor(
provider: provider,
provider: Provider,
signer: OfflineSigner,
account: AccountData,
cosmWasmSigner: SigningCosmWasmClient,
Expand All @@ -177,7 +177,7 @@ export class Wallet {
return this._provider.feeToken;
}

get provider(): provider {
get provider(): Provider {
return this._provider;
}

Expand All @@ -202,7 +202,7 @@ export class Wallet {
}
}

const checkProvider = (provider: provider) => {
const checkProvider = (provider: Provider) => {
if (provider.bech32Prefix == undefined || provider.feeToken == undefined) {
throw "Require set bech32Prefix and feeToken for Provider";
}
Expand Down

0 comments on commit 4f1bfa6

Please sign in to comment.