@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 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: reportedNetwork ?? account.networkId ?? ctx.network
208
+ network
206
209
  };
207
210
  return { partyId, session, capabilities: this.getCapabilities() };
208
211
  }