@hashgraph/hedera-wallet-connect 2.0.7 → 2.0.8-canary.313aed2.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/reown/adapter.js +1 -2
- package/package.json +1 -1
package/dist/reown/adapter.js
CHANGED
|
@@ -26,13 +26,12 @@ export class HederaAdapter extends AdapterBlueprint {
|
|
|
26
26
|
this.logger = createLogger('HederaAdapter');
|
|
27
27
|
this.getCaipNetworks = (namespace) => {
|
|
28
28
|
var _a;
|
|
29
|
+
const targetNamespace = namespace || this.namespace;
|
|
29
30
|
// If the caller explicitly provided networks, respect them instead of
|
|
30
31
|
// returning all Hedera networks regardless of configuration.
|
|
31
32
|
if ((_a = params.networks) === null || _a === void 0 ? void 0 : _a.length) {
|
|
32
|
-
const targetNamespace = namespace || this.namespace;
|
|
33
33
|
return params.networks.filter((n) => !targetNamespace || n.chainNamespace === targetNamespace);
|
|
34
34
|
}
|
|
35
|
-
const targetNamespace = namespace || this.namespace;
|
|
36
35
|
if (targetNamespace === 'eip155') {
|
|
37
36
|
return [HederaChainDefinition.EVM.Mainnet, HederaChainDefinition.EVM.Testnet];
|
|
38
37
|
}
|