Skip to content

fix(transfer): list transfers of every wallet the account has - #603

Merged
dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-transfers-account-wallets-852
Sep 29, 2026
Merged

dadiorchen merged 1 commit into
Greenstand:keycloakfrom
samwel141:fix-transfers-account-wallets-852

Conversation

@samwel141

@samwel141 samwel141 commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Closes Greenstand/treetracker-wallet-app#852

Problem

The transfers list filtered on the login wallet alone, so a transfer sent to any other wallet of the account matched nothing. The recipient never saw it, could not accept it, and the sender's tokens sat pending with only the sender able to cancel

Change

The filter now covers every wallet getAllWallets returns, which since #590 is the account's own wallets plus any it manages. #563 did this before the rollback

The list is seeded with the login wallet before the others are added: knex drops an empty or, and the ownership restriction would go with it, returning every transfer in the table

Verification

  • Unit 243, integration 110, repository 30, eslint clean
  • Three new integration tests: a transfer to a second wallet of the account is listed, it can be accepted, and nothing leaks to unrelated accounts

The transfers list filtered on the login wallet alone, so a transfer sent
to any other wallet of the account matched nothing. The recipient never
saw it, could not accept it, and the sender's tokens sat pending with
only the sender able to cancel.

The filter now covers every wallet getAllWallets returns, which since
Greenstand#590 is the account's own wallets plus any it manages.

The list is seeded with the login wallet before the others are added:
knex drops an empty `or`, and the ownership restriction would go with it.

Closes Greenstand/treetracker-wallet-app#852
@dadiorchen
dadiorchen merged commit cc812e6 into Greenstand:keycloak Sep 29, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.44.0-keycloak.38 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants