We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316a49b commit 31538ebCopy full SHA for 31538eb
1 file changed
src/utils/blockchain.ts
@@ -92,7 +92,10 @@ export class Blockchain {
92
}
93
94
// quorum=1: accept the first response to avoid calls to all configured rpcs
95
- this.provider = new FallbackProvider(configs, undefined, { quorum: 1 })
+ this.provider =
96
+ configs.length > 0
97
+ ? new FallbackProvider(configs, undefined, { quorum: 1 })
98
+ : new FallbackProvider([])
99
100
return this.provider
101
0 commit comments