@getpara/solana-wallet-connectors 1.4.4 → 1.5.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
@@ -117,7 +117,7 @@ function SolanaExternalWalletProvider({ children, para, onSwitchWallet }) {
117
117
  }
118
118
  }, []);
119
119
  useEffect2(() => {
120
- const storedExternalWallet = para.externalWallets[para.currentExternalWalletAddresses?.[0] ?? ""];
120
+ const storedExternalWallet = Object.values(para.externalWallets || {})[0];
121
121
  if (!connecting && storedExternalWallet?.type === WalletType.SOLANA && storedExternalWallet?.address !== solanaAddress?.toString()) {
122
122
  switchWallet(solanaAddress?.toString());
123
123
  }
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/solana-wallet-connectors",
3
- "version": "1.4.4",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "./connectors": "./dist/wallets/connectors/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@getpara/react-sdk": "1.4.4"
12
+ "@getpara/react-sdk": "1.5.0"
13
13
  },
14
14
  "scripts": {
15
15
  "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs",
@@ -37,5 +37,5 @@
37
37
  "dist",
38
38
  "package.json"
39
39
  ],
40
- "gitHead": "9a4086c4b352fff2143d3b931d288c5ebaf127fb"
40
+ "gitHead": "0e3c1401b4f1da60b288cdde7695077c9bcbc48f"
41
41
  }