@funkit/core 2.3.19 → 2.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12101,8 +12101,8 @@ var Chain = class _Chain {
|
|
|
12101
12101
|
{}
|
|
12102
12102
|
);
|
|
12103
12103
|
const addresses = { ...abisAddresses };
|
|
12104
|
-
const { chainInfo } = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO[this.id];
|
|
12105
|
-
this.rpcUrl = chainInfo
|
|
12104
|
+
const { chainInfo } = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO[this.id] ?? {};
|
|
12105
|
+
this.rpcUrl = chainInfo?.rpcUrls.default.http?.[0] || "";
|
|
12106
12106
|
this.client = createPublicClient({ transport: http(this.rpcUrl) });
|
|
12107
12107
|
Object.assign(this, { ...this, addresses });
|
|
12108
12108
|
}
|