-
Notifications
You must be signed in to change notification settings - Fork 27
fix: transaction result serialization #888
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
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.
Did you check if stringifying the result object now works? I suspect that due to the getters this will still be a problem, and we likely have to implement toJSON()
on the root as well
Co-authored-by: Raphael Flechtner <39338561+rflechtner@users.noreply.github.com>
@rflechtner It doesn't work because |
I thought so and wondered if we should allow stringifying to either something like
or
|
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.
👍
fixes https://github.com/KILTprotocol/ticket/issues/3529
Adds
toJSON
implementation to theTransactionResult
objects that include a block number.Another way to solve the serialization issue is to change the block number type to
string
.