aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-04 06:29:29 +0800
committerFabio Berger <me@fabioberger.com>2018-07-04 06:29:29 +0800
commitf4109034656fa826e25d0d4ba8a9d5e676f6c786 (patch)
tree124a6444e0544dc58c743e763c2b38af6da82cc5 /packages/website
parent5f2c303bd8ce983533863b54e14856b39b578035 (diff)
downloaddexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar.gz
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar.bz2
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar.lz
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar.xz
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.tar.zst
dexon-sol-tools-f4109034656fa826e25d0d4ba8a9d5e676f6c786.zip
Rename to InjectedProvider and make publicConfigStore optional
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/types.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts
index b241a34bc..be33f130c 100644
--- a/packages/website/ts/types.ts
+++ b/packages/website/ts/types.ts
@@ -575,13 +575,13 @@ export enum AccountState {
Locked = 'Locked',
}
-export interface MetamaskProvider extends Provider {
- publicConfigStore: InjectedProviderObservable;
+export interface InjectedProvider extends Provider {
+ publicConfigStore?: InjectedProviderObservable;
}
// Minimal interface expected for an injected web3 object
export interface InjectedWeb3 {
- currentProvider: MetamaskProvider;
+ currentProvider: InjectedProvider;
version: {
getNetwork(cd: (err: Error, networkId: string) => void): void;
};