chore: networks.js defines nativeCurrency and nothing reads it, so Sepolia balances and fees all read "ETH" #372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by a deployability verification of
nextat75a5fa9, by grep and by observation in a real browser.src/shared/networks.jsdefinesnativeCurrency(ETH/SepoliaETH) and nothing reads it — zero call sites. Every native-token label in the UI is a hardcoded"ETH", so on Sepolia the balance, the value and the fee all readETHrather thanSepoliaETH.Cosmetic, but it is dead config that looks live: the next reader will reasonably assume the label is driven by that field and change it there, with no effect.
Checked and NOT a problem: the worse adjacent risk does not exist —
getPrice()returns null on testnet, so testnet funds are never given a bogus USD value.Definition of done
nativeCurrency, or the field is removed. Do not leave config that nothing consumes.SepoliaETH, asserted by test.make checkgreen.