aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-04 06:13:36 +0800
committerFabio Berger <me@fabioberger.com>2018-07-04 06:13:36 +0800
commit54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6 (patch)
treeeb0af73f762ad4621e3f67e028822ff04aeccc00 /packages
parenta7902eca1f6e6e89c6dd81c1705dc313433d2a2e (diff)
downloaddexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar.gz
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar.bz2
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar.lz
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar.xz
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.tar.zst
dexon-sol-tools-54c0b7b261277e8fe1a221a9aa21dbd5364e4ba6.zip
Fix type
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/types.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts
index 1239958df..b241a34bc 100644
--- a/packages/website/ts/types.ts
+++ b/packages/website/ts/types.ts
@@ -575,9 +575,13 @@ export enum AccountState {
Locked = 'Locked',
}
+export interface MetamaskProvider extends Provider {
+ publicConfigStore: InjectedProviderObservable;
+}
+
// Minimal interface expected for an injected web3 object
export interface InjectedWeb3 {
- currentProvider: Provider;
+ currentProvider: MetamaskProvider;
version: {
getNetwork(cd: (err: Error, networkId: string) => void): void;
};