Skip to content

Commit

Permalink
use valid uint16 for Hyperliquid (#800)
Browse files Browse the repository at this point in the history
* use valid uint16 for hyperliquid

* add comment about hack
  • Loading branch information
artursapek authored Feb 18, 2025
1 parent 9e51cff commit b6e9637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/base/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const chainIdAndChainEntries = [
[ 46, "Ink" ],
[ 47, "HyperEVM" ],
[ 48, "Monad" ],
[ -1, "Hyperliquid" ],
[ 3104, "Wormchain" ],
[ 4000, "Cosmoshub" ],
[ 4001, "Evmos" ],
Expand All @@ -71,6 +70,9 @@ const chainIdAndChainEntries = [
[10005, "OptimismSepolia"],
[10006, "Holesky" ],
[10007, "PolygonSepolia" ],
// Hack: 50000 is a fake chain ID
// Anticipating Hyperliquid chain
[50000, "Hyperliquid" ],
] as const satisfies MapLevel<number, string>;

export const [chainIds, chains] = zip(chainIdAndChainEntries);
Expand Down

0 comments on commit b6e9637

Please sign in to comment.