@web3-react/network
Advanced tools
Comparing version 8.0.15-alpha.0 to 8.0.16-alpha.0
@@ -50,2 +50,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.provider = undefined; | ||
this.actions.startActivation(); | ||
@@ -72,4 +73,4 @@ // cache the desired chainId before async logic | ||
if (chainId === this.chainId) { | ||
const provider = this.providerCache[chainId]; | ||
return provider | ||
this.provider = this.providerCache[chainId]; | ||
return this.provider | ||
.request({ method: 'eth_chainId' }) | ||
@@ -76,0 +77,0 @@ .then((returnedChainId) => { |
@@ -0,1 +1,2 @@ | ||
import type { Eip1193Bridge } from '@ethersproject/experimental'; | ||
import type { ConnectionInfo } from '@ethersproject/web'; | ||
@@ -6,2 +7,3 @@ import type { Actions } from '@web3-react/types'; | ||
export declare class Network extends Connector { | ||
provider: Eip1193Bridge | undefined; | ||
private urlMap; | ||
@@ -8,0 +10,0 @@ private chainId; |
@@ -28,2 +28,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.provider = undefined; | ||
this.actions.startActivation(); | ||
@@ -50,4 +51,4 @@ // cache the desired chainId before async logic | ||
if (chainId === this.chainId) { | ||
const provider = this.providerCache[chainId]; | ||
return provider | ||
this.provider = this.providerCache[chainId]; | ||
return this.provider | ||
.request({ method: 'eth_chainId' }) | ||
@@ -54,0 +55,0 @@ .then((returnedChainId) => { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "8.0.15-alpha.0", | ||
"version": "8.0.16-alpha.0", | ||
"type": "module", | ||
@@ -30,3 +30,6 @@ "files": [ | ||
}, | ||
"gitHead": "a2e294ebdec567b9fc2f81a7254d1dc1f20c8860" | ||
"devDependencies": { | ||
"@web3-react/store": "^8.0.15-alpha.0" | ||
}, | ||
"gitHead": "318fce50fd26cd26fe2d99df1a95b24bdc029ec3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45962
198
1