@sodax/wallet-sdk-react 0.0.1-rc.4 → 0.0.1-rc.5
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.cjs +2 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/hooks/useWalletProvider.ts +1 -7
- package/src/hooks/useXConnect.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1182,7 +1182,7 @@ function useXConnect() {
|
|
|
1182
1182
|
break;
|
|
1183
1183
|
case "SOLANA": {
|
|
1184
1184
|
const walletName = xConnector.wallet.adapter.name;
|
|
1185
|
-
|
|
1185
|
+
select(walletName);
|
|
1186
1186
|
const adapter = xConnector.wallet.adapter;
|
|
1187
1187
|
if (!adapter) throw new Error("No adapter found for Solana wallet");
|
|
1188
1188
|
if (walletName === "MetaMask") {
|
|
@@ -1466,13 +1466,8 @@ function useWalletProvider(spokeChainId) {
|
|
|
1466
1466
|
if (!injectiveXService) {
|
|
1467
1467
|
return void 0;
|
|
1468
1468
|
}
|
|
1469
|
-
const { walletAddress, msgBroadcaster } = {
|
|
1470
|
-
walletAddress: xAccount.address,
|
|
1471
|
-
msgBroadcaster: injectiveXService.msgBroadcaster
|
|
1472
|
-
};
|
|
1473
1469
|
return new walletSdkCore.InjectiveWalletProvider({
|
|
1474
|
-
|
|
1475
|
-
msgBroadcaster
|
|
1470
|
+
msgBroadcaster: injectiveXService.msgBroadcaster
|
|
1476
1471
|
});
|
|
1477
1472
|
}
|
|
1478
1473
|
case "STELLAR": {
|