@argonprotocol/mainchain 1.4.13-dev.6ac99b65 → 1.4.13-dev.94019742
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/browser/index.js +6 -1
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +6 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +6 -1
- package/lib/index.js.map +1 -1
- package/package.json +3 -5
package/lib/index.cjs
CHANGED
|
@@ -7368,8 +7368,13 @@ async function waitForLoad() {
|
|
|
7368
7368
|
await _utilcrypto.cryptoWaitReady.call(void 0, );
|
|
7369
7369
|
}
|
|
7370
7370
|
async function getClient(host, options) {
|
|
7371
|
+
let provider;
|
|
7372
|
+
if (host.startsWith("http")) {
|
|
7373
|
+
provider = new (0, _api.HttpProvider)(host);
|
|
7374
|
+
} else {
|
|
7375
|
+
provider = new (0, _api.WsProvider)(host);
|
|
7376
|
+
}
|
|
7371
7377
|
options ??= {};
|
|
7372
|
-
const provider = _nullishCoalesce(options.provider, () => ( (host.startsWith("http") ? new (0, _api.HttpProvider)(host) : new (0, _api.WsProvider)(host))));
|
|
7373
7378
|
options.metadata ??= {};
|
|
7374
7379
|
for (const genesisHash of Object.values(genesis_default)) {
|
|
7375
7380
|
options.metadata[`${genesisHash}-${specVersion}`] = result;
|