-
Notifications
You must be signed in to change notification settings - Fork 573
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(ironfish): add spends to wallet/getTransaction
#3835
Conversation
wallet/getTransaction
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, can you add unit test?
added |
expect(responseAccount).toMatch(account.name) | ||
|
||
expect(responseTransaction.spends).toHaveLength(1) | ||
expect(responseTransaction.notes).toHaveLength(2) |
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.
Can you compare the length with transaction.notes.length
|
||
expect(responseAccount).toMatch(account.name) | ||
|
||
expect(responseTransaction.spends).toHaveLength(1) |
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.
Can you compare it with transaction.spends
, and it would be nice if you can compare the each attributes in spends
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.
Left two comments, rest of the PR looks good. Approve it with the condition the comments are addressed.
Summary
Follow-up to #3834
Linear task https://linear.app/if-labs/issue/IFL-723/add-spend-to-rpc-walletgettransaction
Closes IFL-733
Testing Plan
Documentation
Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference)? If yes, link a
related documentation pull request for the website.
iron-fish/website#400
Breaking Change
Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.