Skip to content

Commit

Permalink
Fixed FallbackProvider sync-stalling for backends (ethers-io#841).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 21, 2020
1 parent 988417c commit a404f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/fallback-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async function waitForSync(config: RunningConfig, blockNumber: number): Promise<
setTimeout(function() {

// We are synced
if (provider.blockNumber >= blockNumber) { return resolve(Provider); }
if (provider.blockNumber >= blockNumber) { return resolve(provider); }

// We're done; just quit
if (config.cancelled) { return resolve(null); }
Expand Down

0 comments on commit a404f15

Please sign in to comment.