Anastasia-Labs / lucid-evolution

https://anastasia-labs.github.io/lucid-evolution/
39 stars 14 forks source link

Fix `assetsToValue` to support non UTF-8 Asset Names #126

Closed nikhils9 closed 4 months ago

nikhils9 commented 4 months ago

CML.AssetName.from_str requires a UTF-8 string argument to convert it to CML.AssetName. It's not necessary that the hex encoded asset name (unit.slice(56)) is a valid UTF-8 string. The asset name could just be an arbitrary hex string without a valid UTF-8 encoding.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 11eb043bb7ecf2b0913c6edc1642c7b50808cab5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ------------------------- | ----- | | @lucid-evolution/lucid | Patch | | @lucid-evolution/utils | Patch | | @lucid-evolution/provider | Patch | | @lucid-evolution/wallet | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR