Skip to content

Commit 31538eb

Browse files
committed
fix(#1285): unit tests
1 parent 316a49b commit 31538eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils/blockchain.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export class Blockchain {
9292
}
9393
}
9494
// quorum=1: accept the first response to avoid calls to all configured rpcs
95-
this.provider = new FallbackProvider(configs, undefined, { quorum: 1 })
95+
this.provider =
96+
configs.length > 0
97+
? new FallbackProvider(configs, undefined, { quorum: 1 })
98+
: new FallbackProvider([])
9699
}
97100
return this.provider
98101
}

0 commit comments

Comments
 (0)