-
Notifications
You must be signed in to change notification settings - Fork 116
VoD request - fix example typo #887
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe README.md asynchronous example has been updated to pass an unsigned transaction ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
README.md (1)
273-301: Fix correctly addresses the undefined variable issue.Line 298 now correctly passes the unsigned
my_tx_paymenttransaction tosubmit_and_waitwith thetest_walletparameter, eliminating the undefinedmy_tx_payment_signedreference that was the bug described in the PR.Minor observation: Consider consistency with sync examples.
The async example now follows the same pattern as the simple sync example (lines 31-40), passing an unsigned transaction with the wallet to
submit_and_wait. However, the detailed sync example (lines 164-188) shows the alternative pattern: explicitly signing first withsign(), then submitting the signed transaction without the wallet. Both patterns appear valid, but this inconsistency in documentation could be confusing. If you're revising examples, consider aligning the approach across both sync and async sections for clarity.
High Level Overview of Change
The async example code creates my_tx_payment but then tries to submit my_tx_payment_signed which was never defined. It's missing this line of code before submitting my_tx_payment_signed:
my_tx_payment_signed = sign(my_tx_payment,test_wallet)
^since submit_and_wait auto signs, this was likely just a variable typo during past edits
Context of Change
Type of Change
Did you update CHANGELOG.md?
Test Plan