Skip to content

Commit

Permalink
Update packages/hdwallet-metamask/src/metamask.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnerdhair authored Mar 22, 2022
1 parent d17df4f commit 28a2c25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/hdwallet-metamask/src/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class MetaMaskHDWallet implements core.HDWallet, core.ETHWallet {
public initialize(): never;
public initialize(provider: unknown): Promise<any>;
public async initialize(provider?: unknown): Promise<any> {
if (this.provider) return;
if (!provider) throw new Error("provider is required");
this.provider = provider;
}
Expand Down

0 comments on commit 28a2c25

Please sign in to comment.