(Fix) - #1561 Outgoing instead of custom tx for sending collectibles#1567
(Fix) - #1561 Outgoing instead of custom tx for sending collectibles#1567Agupane merged 19 commits intodevelopmentfrom
Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
…to feature/#1561-outgoing-as-custom-tx
|
Travis automatic deployment: |
|
Travis automatic deployment: |
fernandomg
left a comment
There was a problem hiding this comment.
Beautiful refactor on getTxData. Can we add tests to it? To be sure that nothing went wrong.
Also left a couple comments.
| (isTokenTransfer(tx) && !knownTokens?.get(tx.to)) | ||
| (txCode?.includes(SAFE_TRANSFER_FROM_WITHOUT_DATA_HASH) && !sameAddress(tx.to, ENS_TOKEN_CONTRACT)) || | ||
| (isTokenTransfer(tx) && !knownTokens?.get(tx.to)) || | ||
| hasERC721Transfer |
There was a problem hiding this comment.
I'm not sure how reliable this isSendERC721Transaction function is.
Is it safe to just rely on what the tx-service returns? If so, maybe we can just verify that hasERC721Transfer @dasanra, any opinion?
There was a problem hiding this comment.
I refactored this could you check this again?
|
Travis automatic deployment: |
|
Travis automatic deployment: |
…-tx' into feature/#1561-outgoing-as-custom-tx
|
Travis automatic deployment: |
|
Travis automatic deployment: |
Now it directly checks agains the list of nftAssets on the store
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
Closes #1561
Update: This will also fix #1325
Description
isSendERC721Transactionfunction, which checks if there is a tokenID on the tx paramsgetTxDatawasn't easy to read to I improved it a littleNote about #1325:
isSendERC721Transactionbecause the old way in which it was checking if a tx is or not an ERC721 transaction wasn't working well and wasn't very accurate. I think later when we use the all transaction API this function won't be needed anymore. But right now wasn't working well. I started debugging issue Incorrect amount for ERC20 token transfer #1325 and found that this function was returningtruefor the transaction and it's an ERC20 tx not an ERC721. That's why the frontend was always displaying1as the number of transferred tokensIt looks like this now:
