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

optionally show ERC-20 token transfer info #1777

Merged
merged 7 commits into from
Apr 18, 2019

Conversation

ayrat555
Copy link
Contributor

@ayrat555 ayrat555 commented Apr 18, 2019

part of #1732

img

Changelog

optionally show ERC-20 token transfer info on the transaction page

@ghost ghost assigned ayrat555 Apr 18, 2019
@ghost ghost added the in progress label Apr 18, 2019
@coveralls
Copy link

coveralls commented Apr 18, 2019

Pull Request Test Coverage Report for Build e397eb3e-6c41-4022-86af-5533859ce0a0

  • 2 of 8 (25.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.09%) to 82.883%

Changes Missing Coverage Covered Lines Changed/Added Lines %
apps/block_scout_web/lib/block_scout_web/views/transaction_view.ex 2 8 25.0%
Totals Coverage Status
Change from base Build 48364294-3366-44f8-bad6-709b1bc90483: -0.09%
Covered Lines: 4421
Relevant Lines: 5334

💛 - Coveralls

@ayrat555 ayrat555 changed the title [WIP] optionally show ERC-20 token transfer info optionally show ERC-20 token transfer info Apr 18, 2019
_ ->
nil
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we find the corresponding transfer by token_transfer.transaction_hash?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there can be multiple token transfers for a single transaction

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we only show one then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we only show the one that is in the main transaction like in value transfer. in value transfer transaction we only show value from the main transaction

Copy link
Contributor

Choose a reason for hiding this comment

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

It would make more sense to calculate this once in Indexer.Transform.TokenTransfers in this case, but that's probably a task for another PR.

Copy link
Contributor

@zachdaniel zachdaniel left a comment

Choose a reason for hiding this comment

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

Aside from @goodsoft's comment, LGTM

@ayrat555 ayrat555 merged commit a177310 into master Apr 18, 2019
@ayrat555 ayrat555 deleted the ab-token-transfer-on-transaction-page branch April 18, 2019 14:08
@ghost ghost removed the in progress label Apr 18, 2019
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.

None yet

4 participants