Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to decode vec-u8 to UTF8 string by MOVE-code, or bcs::peel_utf8_string codes ? #19484

Open
wowok-ai opened this issue Sep 21, 2024 · 1 comment
Assignees
Labels
doc-issue Issue submitted using the Doc issue template

Comments

@wowok-ai
Copy link

How to decode vec-u8 to UTF8 string by MOVE-code, or bcs::peel_utf8_string codes ?

Thx.

@wowok-ai wowok-ai added the doc-issue Issue submitted using the Doc issue template label Sep 21, 2024
@tnowacki
Copy link
Contributor

You can use sui::bcs::peel_vec_u8, and then convert to a string with std::string::utf8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-issue Issue submitted using the Doc issue template
Projects
None yet
Development

No branches or pull requests

3 participants