Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFix special transactions that were incorrectly colored as incoming #146
Conversation
faustbrian
merged commit 191c39f
into
ArkEcosystem:master
May 8, 2018
1 check passed
ItsANameToo
deleted the
ItsANameToo:fix-transaction-color
branch
May 10, 2018
dated
referenced this pull request
May 24, 2018
Closed
Vote tx considered both incoming and outgoing #194
This comment has been minimized.
This comment has been minimized.
This change breaks mobile pages - transactions are not shown at all. Also, votes are still counted as both incoming and outgoing in the transactions field. |
This comment has been minimized.
This comment has been minimized.
This change is live on explorer.ark.io and works as intended. If you are having issues on your fork, it might be because it is 68 commits behind and some other things are interfering. Do you have any further information on the error that you get when applying the change from this PR? I don't see how it would break mobile pages as it simply adds a check for special transaction types. |
This comment has been minimized.
This comment has been minimized.
I see that it is live now and works on the ark explorer. Not sure why but it doesn't work on my fork. Works fine on desktop just not on mobile. Transactions are not showing up at all on mobile. Removing the additional check from the 2 mobile vue files start showing them again but with the wrong colors. Even on desktop the counts for in and out are still wrong but i guess that's calculated somewhere else. |
This comment has been minimized.
This comment has been minimized.
Looking at your commit, you made some mistakes when adding the changes to your fork. You used That would at least explain why it gives you issues on mobile |
This comment has been minimized.
This comment has been minimized.
You are correct - I am a moron :) |
This comment has been minimized.
This comment has been minimized.
Not at all, it's easy to overlook small things Regarding the counts for in and out, do you mean that votes are shown for both 'sent' and 'received'? Because I see that that is also an issue for the ark explorer then. |
This comment has been minimized.
This comment has been minimized.
Yup. The counter is counting them as both. Not sure where that calculation happens though. |
This comment has been minimized.
This comment has been minimized.
Received Transactions are fetched here, so you could filter the response data to remove votes (transaction type is 3). That way you will not only remove them from being counted, but also from the "received" tab in a wallet :) |
This comment has been minimized.
This comment has been minimized.
Thanks. I will try but I'm not sure I can figure it out. No clue how to add a filter by tx type. JS is not my thing :) |
This comment has been minimized.
This comment has been minimized.
Change the line to Will take a closer look where the count is based on. |
This comment has been minimized.
This comment has been minimized.
Thanks. Maybe you can fix that for ark and push a commit when you have the time :) |
This comment has been minimized.
This comment has been minimized.
This function fetches the count, but at that point you cannot filter the transactions as we do not have those available (and some addresses will have hundreds of transactions that you would have to go through to filter the count correctly). Not sure whether there is a simple way to correctly show the count with the current API |
This comment has been minimized.
This comment has been minimized.
OK, thanks anyway. You're awesome! |
ItsANameToo commentedMay 7, 2018
This adds an extra check on
transaction.type
when providing a color to a transaction. Originally, special transactions such as votes, signatures- and delegate registrations were given a green color, as the recipient corresponded to the current wallet. However, they are actually outgoing transactions (and are also shown on the 'sent' page) and should therefore be indicated in red.