@shapeshiftoss/caip 1.4.1 → 1.4.2
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.
|
@@ -26,7 +26,7 @@ const generatedCAIP19ToCoingeckoMap = Object.values(adapters).reduce((acc, cur)
|
|
|
26
26
|
...acc,
|
|
27
27
|
...cur
|
|
28
28
|
}));
|
|
29
|
-
const invert = (data) => Object.entries(data).reduce((acc, [k, v]) => (
|
|
29
|
+
const invert = (data) => Object.entries(data).reduce((acc, [k, v]) => ((acc[v] = k), acc), {});
|
|
30
30
|
const generatedCoingeckoToCAIP19Map = invert(generatedCAIP19ToCoingeckoMap);
|
|
31
31
|
const coingeckoToCAIP19 = (id) => {
|
|
32
32
|
const generated = generatedCoingeckoToCAIP19Map[id];
|