Skip to content
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

ensures that postTransaction uses a spending account #5092

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

hughy
Copy link
Contributor

@hughy hughy commented Jun 28, 2024

Summary

replaces 'getAccountByPublicAddress' with a more generic 'findAccount' that takes a predicate

uses findAccount in postTransaction to find the account that has the same public address and is a spending account

fixes issue where wallet has a spending account and a view only account with the same public address and cannot post a transaction

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.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

replaces 'getAccountByPublicAddress' with a more generic 'findAccount' that
takes a predicate

uses findAccount in postTransaction to find the account that has the same public
address and is a spending account

fixes issue where wallet has a spending account and a view only account with the
same public address and cannot post a transaction
@hughy hughy requested a review from a team as a code owner June 28, 2024 17:36
Copy link
Contributor

@patnir patnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@hughy hughy merged commit be16edb into staging Jul 8, 2024
9 checks passed
@hughy hughy deleted the fix/hughy/wallet-get-account-filter branch July 8, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants