Skip to content

fix: Fixes #12. Update tx list page to show transactions to all contracts and self-transactions#19

Open
ltfschoen wants to merge 1 commit into
matchx-dev:developfrom
ltfschoen:luke-12-tx-list-v2
Open

fix: Fixes #12. Update tx list page to show transactions to all contracts and self-transactions#19
ltfschoen wants to merge 1 commit into
matchx-dev:developfrom
ltfschoen:luke-12-tx-list-v2

Conversation

@ltfschoen

@ltfschoen ltfschoen commented Aug 3, 2019

Copy link
Copy Markdown
  • Add some docs and refactor to getTransaction
  • Add isRecipientContract to detect ERC20 token transfers (i.e. using https://erc20faucet.com/), since the isContractInteraction function does not appear to detect them
  • Add support for detecting when transaction was sent to the original sender by using tweakTxs to add type self-interaction
  • Call tweakTxs for both refreshTransactions and fetchTransactions so that UI always shows the correct values
  • Removed the direction function as it didn't appear to be necessary (unnecessary complexity)

Note: Extends upon changes in PR 764576a
Note: Incorporates approaches that were adopted in PR https://github.com/mxc-foundation/mxc-wallet/pull/18/files, which was incorrectly using the 'master' branch instead of the 'develop' branch, so it didn't have any of
the changes that had already been made in PR 764576a

Screenshot:

Screenshot 2019-08-03 at 5 07 00 pm

… all contracts and self-transactions

* [x] Add some docs and refactor to `getTransaction`
* [x] Add `isRecipientContract` to detect ERC20 token transfers (i.e. using https://erc20faucet.com/), since the `isContractInteraction` function does not appear to detect them
* [x] Add support for detecting when transaction was sent to the original sender by using `tweakTxs` to add type `self-interaction`
* [x] Call `tweakTxs` for both `refreshTransactions` and `fetchTransactions` so that UI always shows the correct values
* [x] Removed the `direction` function as it didn't appear to be necessary (unnecessary complexity)

Note: Extends upon changes in PR matchx-dev@764576a
Note: Incorporates approaches that were adopted in PR https://github.com/mxc-foundation/mxc-wallet/pull/18/files, which was incorrectly using the 'master' branch instead of the 'develop' branch, so it didn't have any of
the changes that had already been made in PR matchx-dev@764576a
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.

1 participant