@interchain-kit/react 0.2.211 → 0.2.213
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/esm/store/store.js +6 -1
- package/package.json +3 -3
- package/store/store.js +6 -1
package/esm/store/store.js
CHANGED
|
@@ -114,12 +114,17 @@ export const createInterchainStore = (walletManager) => {
|
|
|
114
114
|
chainName: newChain.chainName,
|
|
115
115
|
walletName: w.info.name,
|
|
116
116
|
walletState: WalletState.Disconnected,
|
|
117
|
-
rpcEndpoint: endpointOptions
|
|
117
|
+
rpcEndpoint: endpointOptions?.endpoints[newChain.chainName]?.rpc?.[0] || '',
|
|
118
118
|
errorMessage: "",
|
|
119
119
|
account: undefined
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
+
else {
|
|
124
|
+
draft.updateChainWalletState(newChain.chainName, newChain.chainName, {
|
|
125
|
+
rpcEndpoint: endpointOptions?.endpoints[newChain.chainName]?.rpc?.[0] || '',
|
|
126
|
+
});
|
|
127
|
+
}
|
|
123
128
|
draft.signerOptionMap[newChain.chainName] = signerOptions?.signing?.(newChain.chainName);
|
|
124
129
|
draft.endpointOptionsMap[newChain.chainName] = endpointOptions?.endpoints?.[newChain.chainName];
|
|
125
130
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interchain-kit/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.213",
|
|
4
4
|
"author": "Hyperweb <developers@hyperweb.io>",
|
|
5
5
|
"description": "interchain-kit wallet connector react package",
|
|
6
6
|
"main": "index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"keywords": [],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@chain-registry/v2-types": "^0.53.40",
|
|
37
|
-
"@interchain-kit/core": "0.2.
|
|
37
|
+
"@interchain-kit/core": "0.2.213",
|
|
38
38
|
"@interchain-ui/react": "1.26.3",
|
|
39
39
|
"@interchainjs/cosmos": "1.10.1",
|
|
40
40
|
"@interchainjs/cosmos-types": "1.10.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"jest-environment-jsdom": "^29.7.0",
|
|
62
62
|
"ts-jest": "^29.3.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "84f8fb7dd30bfa0f520c115a26abf69fe411b97d"
|
|
65
65
|
}
|
package/store/store.js
CHANGED
|
@@ -117,12 +117,17 @@ const createInterchainStore = (walletManager) => {
|
|
|
117
117
|
chainName: newChain.chainName,
|
|
118
118
|
walletName: w.info.name,
|
|
119
119
|
walletState: core_1.WalletState.Disconnected,
|
|
120
|
-
rpcEndpoint: endpointOptions
|
|
120
|
+
rpcEndpoint: endpointOptions?.endpoints[newChain.chainName]?.rpc?.[0] || '',
|
|
121
121
|
errorMessage: "",
|
|
122
122
|
account: undefined
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
+
else {
|
|
127
|
+
draft.updateChainWalletState(newChain.chainName, newChain.chainName, {
|
|
128
|
+
rpcEndpoint: endpointOptions?.endpoints[newChain.chainName]?.rpc?.[0] || '',
|
|
129
|
+
});
|
|
130
|
+
}
|
|
126
131
|
draft.signerOptionMap[newChain.chainName] = signerOptions?.signing?.(newChain.chainName);
|
|
127
132
|
draft.endpointOptionsMap[newChain.chainName] = endpointOptions?.endpoints?.[newChain.chainName];
|
|
128
133
|
});
|