diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-06-20 01:03:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-20 01:03:08 +0800 |
commit | e4acad60e91943c2dcbdd55b7766b543e78df6f6 (patch) | |
tree | b89a1b364aafc21647a1fe36b35ab2f30045d67c /packages/website/ts/blockchain.ts | |
parent | 66dc70c057d805f0abf84fe5dd13bf1aba82ab77 (diff) | |
parent | 3b73a0e26908a5c147cd377efb3dbe64b6febed4 (diff) | |
download | dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar.gz dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar.bz2 dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar.lz dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar.xz dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.tar.zst dexon-sol-tools-e4acad60e91943c2dcbdd55b7766b543e78df6f6.zip |
Merge pull request #726 from 0xProject/bug/website/late-eth-balance
Check network state immediately instead of waiting for delay
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 3ebdd1dee..46a4d6629 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); - this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceState(); + await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); 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(); - this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceState(); + await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); 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(); - this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceState(); + await this._blockchainWatcher.startEmittingNetworkConnectionAndUserBalanceStateAsync(); await this._rehydrateStoreWithContractEventsAsync(); } private _updateProviderName(injectedWeb3: Web3): void { |