Christian Mazakas efb95a3eba update PolkadotTxMeta to display in UI (#33237)
Resolves brave/brave-browser#51939

This PR moves the code away from storing the encoded extrinsic.

The main motivation for this change is because decoding it reliably and well
relies on the chain metadata which is asynchronously fetched and currently,
all of the code that parses the transaction JSON from the backing data files
assumes a world of purely synchronous code.

Instead of opting into async data sources, we simply update the code to eschew
it by storing a more normalized format of rote data.

The code also updates the transaction metadata to store an ss58 prefix if the
send address was ss58-encoded. This is done so that we can store the recipient
address in its plain hex form and then reconstruct it on the front-end so that
what's displayed now matches perfectly with what the user originally typed in.
2026-01-19 11:42:32 -08:00
2025-12-20 23:56:16 +00:00
2025-12-23 09:16:42 -05:00
2025-12-20 23:56:17 +00:00
2026-01-19 16:03:21 +00:00
2026-01-19 16:03:21 +00:00
2026-01-19 16:03:21 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%