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

Need to update to_binary to to_json_binary due to depreciation #62

Open
artemd24 opened this issue Apr 7, 2024 · 2 comments
Open

Need to update to_binary to to_json_binary due to depreciation #62

artemd24 opened this issue Apr 7, 2024 · 2 comments

Comments

@artemd24
Copy link

artemd24 commented Apr 7, 2024

According to the cosmwasm_std, the function to_binary is deprecated.

As a result build of the project ends with warning. It would be better to change usage of to_binary to more actual to_json_binary.

@artemd24 artemd24 changed the title It is necessary to change to_binary to to_json_binary due to depreciation Need to update to_binary to to_json_binary due to depreciation Apr 7, 2024
@artemd24
Copy link
Author

artemd24 commented Apr 7, 2024

This also applies to from_binary

Link to the code

@ifraixedes
Copy link

This change should come with more changes than that. The book says to install cosmwasm-std: 1.0.0-beta8. That version doesn't deprecate to_binary and from_binary.

Even worse that version doesn't have from_json which is the replacement for from_binary

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

2 participants