Skip to content

Commit b6e9637

Browse files
authored
use valid uint16 for Hyperliquid (#800)
* use valid uint16 for hyperliquid * add comment about hack
1 parent 9e51cff commit b6e9637

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/base/src/constants/chains.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const chainIdAndChainEntries = [
5353
[ 46, "Ink" ],
5454
[ 47, "HyperEVM" ],
5555
[ 48, "Monad" ],
56-
[ -1, "Hyperliquid" ],
5756
[ 3104, "Wormchain" ],
5857
[ 4000, "Cosmoshub" ],
5958
[ 4001, "Evmos" ],
@@ -71,6 +70,9 @@ const chainIdAndChainEntries = [
7170
[10005, "OptimismSepolia"],
7271
[10006, "Holesky" ],
7372
[10007, "PolygonSepolia" ],
73+
// Hack: 50000 is a fake chain ID
74+
// Anticipating Hyperliquid chain
75+
[50000, "Hyperliquid" ],
7476
] as const satisfies MapLevel<number, string>;
7577

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

0 commit comments

Comments
 (0)