Skip to content

Commit

Permalink
Merge pull request #116 from gregoryguillou/do-not-rely-on-default-pr…
Browse files Browse the repository at this point in the history
…ovider
  • Loading branch information
janek26 authored Aug 17, 2022
2 parents 9c9d1eb + 77d1813 commit 6a198f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
AccountInterface,
defaultProvider,
KeyPair,
ProviderInterface,
SignerInterface,
} from "starknet";

Expand Down Expand Up @@ -116,7 +117,7 @@ class GetStarknetWallet implements IGetStarknetWallet {
name = "Disconnected";
icon = "";
selectedAddress?: string = undefined;
provider = defaultProvider;
provider: ProviderInterface = defaultProvider;
isConnected = false;
account: AccountInterface = new Account(
defaultProvider,
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface IGetStarknetWallet {
getStarknet(): IStarknetWindowObject;
}

import type { AccountInterface, Provider, SignerInterface } from "starknet";
import type { AccountInterface, ProviderInterface, SignerInterface } from "starknet";

export type EventType = "accountsChanged" | "networkChanged";

Expand Down Expand Up @@ -156,7 +156,7 @@ export interface IStarknetWindowObject {
name: string;
version: string;
icon: string;
provider: Provider;
provider: ProviderInterface;
isConnected: boolean;
/**
* @deprecated use `account` instead
Expand Down

0 comments on commit 6a198f7

Please sign in to comment.