-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix serde #2559
Fix serde #2559
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find. Why did test_serde_json
below not catch any issues? Can any of the underlying test logic be adjusted so it would have failed earlier? And as a result, would we need to re-evaluate any other test_serde_json
functions in snarkVM?
@vicsn I don't think any adjustments are necessary, but we need to check if the types used in snarkVM are unsupported by JSON |
@ghostant-1017 great find! |
@d0cd To my knowledge, only the RPC interfaces related to |
I think a clean approach to testing could be to add a function similar to If you're not interested to add the test, just let us know and I'll close this PR, adding the test in a new one. |
The Number enum in The reason we didn't likely see it in testing, is because we didn't end up testing with a number above |
@vicsn I will make some changes according to @iamalwaysuncomfortable , and add the test case sir. |
30b5854
to
ad4783d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌
|
Motivation
Fix the bug in Block serialize and deserialize