@calimero-network/mero-react 9.6.4 → 9.7.0
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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -423,10 +423,13 @@ async function foundDelegatedNamespace(s, req = {}, deps = {}) {
|
|
|
423
423
|
const known = Object.entries(readRelayMap(s.account).namespaces).find(
|
|
424
424
|
([, url]) => url.replace(/\/+$/, "") === relay
|
|
425
425
|
)?.[0];
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
const named = s.executorAccount && s.relayUrl && s.relayUrl.replace(/\/+$/, "") === relay ? s.executorAccount : null;
|
|
427
|
+
if (!named && !known) {
|
|
428
|
+
throw new Error(
|
|
429
|
+
"the executor account of this relay is not known: join a namespace on it first, or connect with the relay's executor account (the cloud shows it beside the relay)"
|
|
430
|
+
);
|
|
428
431
|
}
|
|
429
|
-
const
|
|
432
|
+
const executorAccount = named ?? (await client(s, relay, governanceNonce(relay, known), deps.fetch).describeGovernance(known)).executorAccount;
|
|
430
433
|
let next = BigInt(Date.now());
|
|
431
434
|
const founded = await client(s, relay, { next: async () => next++ }, deps.fetch).foundNamespace({
|
|
432
435
|
executorAccount,
|