-
Notifications
You must be signed in to change notification settings - Fork 813
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
bugfix: pass along toJSON args #586
Conversation
Codecov Report
@@ Coverage Diff @@
## master #586 +/- ##
=======================================
Coverage 52.82% 52.82%
=======================================
Files 104 104
Lines 27661 27661
Branches 4736 4736
=======================================
Hits 14611 14611
Misses 13050 13050
Continue to review full report at Codecov.
|
I noticed a similar issue in an RPC method so there could be more. Here was the fix: braydonf@a72c50a Edit: added a pr for it at #587 |
Seems like we could use a test suite that tries each network and asserts for anything that is network specific |
Nice find. Agree on need to test all places where network is not being passed.
in this bit, even if |
Anything remaining for this? A test? |
@@ -298,7 +298,7 @@ class Input { | |||
*/ |
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.
minor: update jsdoc 👍
Bump: Noticing this in hsd as well, its on my TODOs to add some tests for this and get them into hsd as well. I think it will help developers a lot when they log their primitives to see the correctly formatted addresses |
So most transaction and block related primitives do not pass these arguments for the
For consistency it would be good to have the similar behavior between these. I suspect that the reason for the lack of arguments for these methods is that it's typically used via What's an example of how the input is being logged? |
Okay, closing as |
Without passing along the arguments here,
this.getJSON
will default will return incorrect information.The network will default to
main
, which will result in an incorrect address