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

Some strings like console can be non-utf8 #42

Open
poplexity opened this issue Oct 21, 2024 · 0 comments
Open

Some strings like console can be non-utf8 #42

poplexity opened this issue Oct 21, 2024 · 0 comments

Comments

@poplexity
Copy link
Member

We currently do not handle non-utf8 strings, we panic. But one example (console printing in ship data) can be non-utf8 and on Telos testnet there exists such a block that breaks decoding ship as a result. In that case, using Vec<u8> instead of String was a valid workaround, leaving the caller to convert to String and handle non-utf8.

This issue is to track the possibility of not panicing, or creating a way for the caller to specify the behavior they want (panic vs getting back a hex string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant