diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-23 06:37:42 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-26 07:01:26 +0800 |
commit | 53e2cda4c8d6698b5c4b69f510ad8764cb089306 (patch) | |
tree | 70812837a242f9b96c68138a5c39abc01abe4653 /packages/website/ts/blockchain.ts | |
parent | 9341afe764a18c2104e598b25699a30cc1438d8e (diff) | |
download | dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar.gz dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar.bz2 dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar.lz dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar.xz dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.tar.zst dexon-sol-tools-53e2cda4c8d6698b5c4b69f510ad8764cb089306.zip |
Remove existing networkId watching logic from BlockchainWatcher
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 46a4d6629..11202eb64 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -229,7 +229,7 @@ export class Blockchain { shouldPollUserAddress, ); this._contractWrappers.setProvider(provider, this.networkId); - await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); + await this._blockchainWatcher.startEmittingUserBalanceStateAsync(); this._dispatcher.updateProviderType(ProviderType.Ledger); } public async updateProviderToInjectedAsync(): Promise<void> { @@ -259,7 +259,7 @@ export class Blockchain { this._contractWrappers.setProvider(provider, this.networkId); await this.fetchTokenInformationAsync(); - await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); + await this._blockchainWatcher.startEmittingUserBalanceStateAsync(); this._dispatcher.updateProviderType(ProviderType.Injected); delete this._ledgerSubprovider; delete this._cachedProvider; @@ -816,7 +816,7 @@ export class Blockchain { this._userAddressIfExists = userAddresses[0]; this._dispatcher.updateUserAddress(this._userAddressIfExists); await this.fetchTokenInformationAsync(); - await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); + await this._blockchainWatcher.startEmittingUserBalanceStateAsync(); await this._rehydrateStoreWithContractEventsAsync(); } private _updateProviderName(injectedWeb3: Web3): void { |