-
Notifications
You must be signed in to change notification settings - Fork 12
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
Added serde support #257
Added serde support #257
Conversation
1b9ceb6
to
f7d66d8
Compare
f7d66d8
to
eea6a20
Compare
|
||
// To serialize and deserialize u64s as big ints: | ||
// https://github.com/dusk-network/rusk/issues/2773#issuecomment-2519791322. | ||
struct Bigint(u64); |
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.
Is this also needed in other repositories?
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.
The other repos' structs didn't have any u64
s to serialize.
eea6a20
to
1bda90d
Compare
1bda90d
to
e349ead
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.
We also want to run this again in the CI, so that the tests will be executed as well in the future.
e349ead
to
bd48bb6
Compare
bd48bb6
to
ba10f12
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.
Looks good from my side but please make sure that @Neotamandua is also on board with all the changes
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.
Looks good to me too. The only thing I would have suggested is to add a similar test as in piecrust to catch the case where a struct field is changed, but I don't think that's really needed here, so let's leave it as is.
For dusk-network/rusk/issues/2773 and #258 .