@partylayer/sdk 0.17.0 → 0.17.1
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/README.md +3 -3
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1815,6 +1815,19 @@ var PartyLayerClient = class {
|
|
|
1815
1815
|
const adapter = this.adapters.get(session.walletId);
|
|
1816
1816
|
if (adapter?.restore) {
|
|
1817
1817
|
const ctx = this.createAdapterContext();
|
|
1818
|
+
if (adapter instanceof GenericDiscoveryAdapter && adapter.usesFactory()) {
|
|
1819
|
+
let networkHosts = {};
|
|
1820
|
+
try {
|
|
1821
|
+
const entry = await this.registryClient.getWalletEntry(String(session.walletId));
|
|
1822
|
+
networkHosts = entry.adapter?.networkHosts ?? {};
|
|
1823
|
+
} catch {
|
|
1824
|
+
}
|
|
1825
|
+
adapter.setNetworkHosts(networkHosts);
|
|
1826
|
+
try {
|
|
1827
|
+
adapter.resolveOfficial(session.network);
|
|
1828
|
+
} catch {
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1818
1831
|
const restored = await adapter.restore(ctx, {
|
|
1819
1832
|
...session,
|
|
1820
1833
|
encrypted
|