We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f709fd5 commit 1578945Copy full SHA for 1578945
packages/core/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@web3-onboard/core",
3
- "version": "2.0.0-alpha.5",
+ "version": "2.0.0-alpha.6",
4
"scripts": {
5
"build": "rollup -c",
6
"dev": "rollup -c -w",
packages/core/src/provider.ts
@@ -266,6 +266,9 @@ export async function getBalance(
266
address: string,
267
chain: Chain
268
): Promise<Balances | null> {
269
+ // chain we don't recognize
270
+ if (!chain) return null
271
+
272
if (!ethersProviders[chain.rpcUrl]) {
273
ethersProviders[chain.rpcUrl] = new providers.StaticJsonRpcProvider(
274
chain.rpcUrl
0 commit comments