@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sodax/wallet-sdk-react",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.5",
|
|
5
5
|
"description": "Wallet SDK of Sodax",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"viem": "2.29.2",
|
|
46
46
|
"wagmi": "^2.14.12",
|
|
47
47
|
"zustand": "4.5.2",
|
|
48
|
-
"@sodax/wallet-sdk-core": "0.0.1-rc.
|
|
48
|
+
"@sodax/wallet-sdk-core": "0.0.1-rc.6",
|
|
49
49
|
"@sodax/types": "0.0.1-rc.17"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -104,14 +104,8 @@ export function useWalletProvider(
|
|
|
104
104
|
// throw new Error('InjectiveXService is not initialized');
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
const { walletAddress, msgBroadcaster } = {
|
|
108
|
-
walletAddress: xAccount.address,
|
|
109
|
-
msgBroadcaster: injectiveXService.msgBroadcaster,
|
|
110
|
-
};
|
|
111
|
-
|
|
112
107
|
return new InjectiveWalletProvider({
|
|
113
|
-
|
|
114
|
-
msgBroadcaster: msgBroadcaster,
|
|
108
|
+
msgBroadcaster: injectiveXService.msgBroadcaster,
|
|
115
109
|
});
|
|
116
110
|
}
|
|
117
111
|
|
package/src/hooks/useXConnect.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function useXConnect(): UseMutationResult<XAccount | undefined, Error, XC
|
|
|
59
59
|
case 'SOLANA': {
|
|
60
60
|
const walletName = (xConnector as SolanaXConnector).wallet.adapter.name;
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
select(walletName);
|
|
63
63
|
|
|
64
64
|
const adapter = (xConnector as SolanaXConnector).wallet.adapter;
|
|
65
65
|
|