@partylayer/sdk 0.9.0 → 0.10.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.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -199,10 +199,13 @@ var GenericDiscoveryAdapter = class {
|
|
|
199
199
|
} catch {
|
|
200
200
|
}
|
|
201
201
|
const partyId = core.toPartyId(account.partyId);
|
|
202
|
+
const network = [reportedNetwork, account.networkId, ctx.network].find(
|
|
203
|
+
(n) => typeof n === "string" && core.isRecognizedNetwork(n)
|
|
204
|
+
) ?? ctx.network;
|
|
202
205
|
const session = {
|
|
203
206
|
walletId: this.walletId,
|
|
204
207
|
partyId,
|
|
205
|
-
network
|
|
208
|
+
network
|
|
206
209
|
};
|
|
207
210
|
return { partyId, session, capabilities: this.getCapabilities() };
|
|
208
211
|
}
|