@orderly.network/hooks 0.0.57 → 0.0.59
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 +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2599,11 +2599,15 @@ var useChains = (networkId, options = {}) => {
|
|
|
2599
2599
|
if (orderlyChainIds.has(chain.network_infos.chain_id)) {
|
|
2600
2600
|
orderlyChainsArr = orderlyChainsArr.map((item2) => {
|
|
2601
2601
|
if (item2.network_infos.chain_id === chain.network_infos.chain_id) {
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2602
|
+
const mergedChain = {
|
|
2603
|
+
...item2,
|
|
2604
|
+
network_infos: {
|
|
2605
|
+
...item2.network_infos,
|
|
2606
|
+
...chain.network_infos
|
|
2607
|
+
},
|
|
2608
|
+
token_infos: chain.token_infos
|
|
2606
2609
|
};
|
|
2610
|
+
map.current.set(chain.network_infos.chain_id, mergedChain);
|
|
2607
2611
|
}
|
|
2608
2612
|
return item2;
|
|
2609
2613
|
});
|