-
Notifications
You must be signed in to change notification settings - Fork 1
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(cmd): Add tx show subcommand for pretty-printing transactions #27
Conversation
4f3b2f3
to
58969d2
Compare
This is probably related to #8 ? I'm puzzled how to test this. So I tried:
and copied the content into testtx.json. Then, tx show gives me
Showing runtime tx also seems wrong:
|
No, #8 is improving the "show tx" for ParaTime transactions. This just enables showing transactions in general, the actual pretty output can be improved in the future. But yeah I see there are some problems with format autodetection, will take a look ;-) |
58969d2
to
bfb5607
Compare
@matevz The transaction decoding should work correctly now and there should no longer be signature verification errors as long as you use the right |
bfb5607
to
87193b3
Compare
}, | ||
} | ||
) | ||
|
||
func tryDecodeTx(rawTx []byte) (any, error) { |
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.
Should this go into oasis-sdk? E.g. to simplify the runtime test vectors and for debugging future client-sdk/go apps?
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.
I would rather not bloat the SDK until this is required somewhere else as well.
90ea20a
to
e624f97
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.
Thanks, good job!
e624f97
to
c99f5a5
Compare
No description provided.