@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.mjs
CHANGED
|
@@ -1157,7 +1157,7 @@ function useXConnect() {
|
|
|
1157
1157
|
break;
|
|
1158
1158
|
case "SOLANA": {
|
|
1159
1159
|
const walletName = xConnector.wallet.adapter.name;
|
|
1160
|
-
|
|
1160
|
+
select(walletName);
|
|
1161
1161
|
const adapter = xConnector.wallet.adapter;
|
|
1162
1162
|
if (!adapter) throw new Error("No adapter found for Solana wallet");
|
|
1163
1163
|
if (walletName === "MetaMask") {
|
|
@@ -1441,13 +1441,8 @@ function useWalletProvider(spokeChainId) {
|
|
|
1441
1441
|
if (!injectiveXService) {
|
|
1442
1442
|
return void 0;
|
|
1443
1443
|
}
|
|
1444
|
-
const { walletAddress, msgBroadcaster } = {
|
|
1445
|
-
walletAddress: xAccount.address,
|
|
1446
|
-
msgBroadcaster: injectiveXService.msgBroadcaster
|
|
1447
|
-
};
|
|
1448
1444
|
return new InjectiveWalletProvider({
|
|
1449
|
-
|
|
1450
|
-
msgBroadcaster
|
|
1445
|
+
msgBroadcaster: injectiveXService.msgBroadcaster
|
|
1451
1446
|
});
|
|
1452
1447
|
}
|
|
1453
1448
|
case "STELLAR": {
|