File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/core" ,
3
- "version" : " 2.0.7 " ,
3
+ "version" : " 2.0.8 " ,
4
4
"scripts" : {
5
5
"build" : " rollup -c" ,
6
6
"dev" : " rollup -c -w" ,
Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ export async function getEns(
228
228
address : Address ,
229
229
chain : Chain
230
230
) : Promise < Ens | null > {
231
+ // chain we don't recognize and don't have a rpcUrl for requests
232
+ if ( ! chain ) return null
233
+
231
234
if ( ! ethersProviders [ chain . rpcUrl ] ) {
232
235
ethersProviders [ chain . rpcUrl ] = new providers . StaticJsonRpcProvider (
233
236
chain . rpcUrl
@@ -271,7 +274,7 @@ export async function getBalance(
271
274
address : string ,
272
275
chain : Chain
273
276
) : Promise < Balances | null > {
274
- // chain we don't recognize
277
+ // chain we don't recognize and don't have a rpcUrl for requests
275
278
if ( ! chain ) return null
276
279
277
280
if ( ! ethersProviders [ chain . rpcUrl ] ) {
You can’t perform that action at this time.
0 commit comments