Skip to content

Commit e143582

Browse files
Merge pull request #538 from LedgerHQ/fix/apa/new_testnets
New Ethereum testnets
2 parents b2c39a1 + 9b1b9f7 commit e143582

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stax_chain_1_64px.gif

glyphs/stax_chain_17000_64px.gif

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stax_chain_1_64px.gif

glyphs/stax_chain_58008_64px.gif

-561 Bytes
Binary file not shown.

src/network.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,13 @@ static const network_info_t NETWORK_MAPPING[] = {
7979
{.chain_id = 248, .name = "Oasys", .ticker = "OAS"},
8080
{.chain_id = 1101, .name = "Polygon zkEVM", .ticker = "ETH"},
8181
{.chain_id = 8453, .name = "Base", .ticker = "ETH"},
82-
{.chain_id = 58008, .name = "Sepolia", .ticker = "ETH"},
8382
{.chain_id = 1907, .name = "Bitcichain", .ticker = "BITCI"},
8483
{.chain_id = 1116, .name = "Core", .ticker = "CORE"},
8584
{.chain_id = 7171, .name = "Bitrock Mainnet", .ticker = "BROCK"},
8685
{.chain_id = 10507, .name = "Numbers Protocol", .ticker = "NUM"},
8786
{.chain_id = 59144, .name = "Linea", .ticker = "ETH"},
87+
{.chain_id = 11155111, .name = "Sepolia", .ticker = "ETH"},
88+
{.chain_id = 17000, .name = "Holesky", .ticker = "ETH"},
8889
};
8990

9091
static const network_info_t *get_network_from_chain_id(const uint64_t *chain_id) {

tools/gen_networks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import re
66
import argparse
7+
from pathlib import Path
78

89

910
class Network:
@@ -62,7 +63,10 @@ def gen_icons_array_src(networks: list[Network], path: str) -> bool:
6263

6364
for net in networks:
6465
glyph_name = get_network_glyph_name(net)
65-
if os.path.isfile("glyphs/%s.gif" % (glyph_name)):
66+
glyph_file = "glyphs/%s.gif" % (glyph_name)
67+
if os.path.isfile(glyph_file):
68+
if os.path.islink(glyph_file):
69+
glyph_name = Path(os.path.realpath(glyph_file)).stem
6670
print(" "*4, end="", file=out)
6771
print("{.chain_id = %u, .icon = &C_%s}, // %s" % (net.chain_id,
6872
glyph_name,

0 commit comments

Comments
 (0)