fix: a token symbol read off a contract is never stored cut mid-emoji (closes #458)
lookupTokenInfo() cut the symbol at 12 and the name at 64 UTF-16 units, so an emoji outside the Basic Multilingual Plane could be cut between its two halves and the half left over stored and shown as U+FFFD. Both are now cut on code points, as displaySymbol() does. A symbol already stored broken is not repaired. Model: opus-5-5
This commit is contained in:
@@ -45,6 +45,15 @@ but the review is broader than any of them.
|
||||
|
||||
# Completed Steps
|
||||
|
||||
- 2026-10-06: A token symbol or name read off a contract is no longer stored cut
|
||||
between the two halves of an emoji
|
||||
([#458](https://git.eeqj.de/sneak/AutistMask/issues/458)). `lookupTokenInfo()`
|
||||
cut both by UTF-16 units; it now counts code points, as `displaySymbol()` has
|
||||
since [#329](https://git.eeqj.de/sneak/AutistMask/issues/329).
|
||||
`tests/tokenLookupTruncation.test.js` looks up a token whose symbol and name
|
||||
are made of emoji outside the Basic Multilingual Plane. A symbol already
|
||||
stored broken is not repaired.
|
||||
|
||||
- 2026-10-06: Reloading or closing the popup no longer logs a request it cancels
|
||||
as a failure in the transaction lists and ENS name lookups on the address and
|
||||
token screens, the address scan after a wallet is created, the endpoint checks
|
||||
|
||||
Reference in New Issue
Block a user