-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3211: Serialize AssetName to JSON as hex string r=cblp a=cblp Fix (second attempt) of incorrect UTF-8 decoding of non-textual (non-UTF-8) asset names. I also changed tx-view to test JSON repr. BEFORE: ```js { "51f056b530aba5969bf996d1be51c7aa3581f6e0d7b9e0911a5c0c1d": { "TheDrifter13": 1, "GOLDtest": 5, "��\"3DUfw��������": 42 // UTF-8 fail, actually } } ``` AFTER: ```js { "51f056b530aba5969bf996d1be51c7aa3581f6e0d7b9e0911a5c0c1d": { "546865447269667465723133": 1, "474f4c4474657374": 5, "00112233445566778899AABBCCDDEEFF": 42 } } ``` This is how it already looks like in UI (Cardano Explorer): > asset1... > Ticker: > Name: > Description: > Policy ID: 51f056b530aba5969bf996d1be51c7aa3581f6e0d7b9e0911a5c0c1d > Asset Name: 474f4c4474657374 Future Daedalus: > Name: GoodCoin > Asset name: 676f6f64636f696e (ASCII: goodcoin) Co-authored-by: Yuriy Syrovetskiy <yuriy.syrovetskiy@iohk.io>
- Loading branch information
Showing
13 changed files
with
196 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.