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

feat(then): ✨ cast big and float and add cast on schemas in the then phase #703

Merged
merged 16 commits into from
Dec 1, 2023

Conversation

matteo-cristino
Copy link
Collaborator

fix #627

@matteo-cristino
Copy link
Collaborator Author

fix #527

@matteo-cristino
Copy link
Collaborator Author

Merge carefully. There is a main difference between zenroom in this PR and in main. On main when printing a encoded table (e.g. base64 dictionary) that contains some floats/integers the floats/integers inside it are printed as floats/integers, here they are printed following the table encoding (e.g. as base64)

@jaromil
Copy link
Member

jaromil commented Jul 17, 2023

needs some extra checks and maybe corrections for the eth and bitcoin examples.

@matteo-cristino matteo-cristino marked this pull request as draft August 8, 2023 10:00
…tion

This seems handly during debug, moreover negative big (as it is now) can not be encoded in the default encoding and could result in errors when printing out error messagges or using I.spy inside the code
as it was before when printing a encoded table (e.g. string dictionary) that was containing some floats the floats inside it where printed as floats, now they are printed following the table encoding (e.g. as strings)
Also update ZEN.assert and ZEN.CODEC to zencode_assert and CODEC
This is done beacuse everything can be encoded in integer while it is not true with numbers
@jaromil jaromil marked this pull request as ready for review December 1, 2023 15:39
@jaromil jaromil merged commit 6085d87 into master Dec 1, 2023
35 checks passed
@jaromil jaromil deleted the fix/then_integers branch December 1, 2023 16:10
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

Successfully merging this pull request may close these issues.

Then codec for integer/float/number is broken
2 participants