Filter fee events#1188
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1188 +/- ##
==========================================
+ Coverage 38.40% 38.65% +0.25%
==========================================
Files 38 38
Lines 1940 1948 +8
==========================================
+ Hits 745 753 +8
Misses 1107 1107
Partials 88 88
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
|
Will this not remove all FlowToken events? |
I was going off the github issue linked. Spot checking some transactions, I see what you are saying the last three events are what need to be filtered out. I'll update the PR. |
janezpodhostnik
left a comment
There was a problem hiding this comment.
In certain setups (fees are set to 0) there will be no fee events. I would make the check more complex:
If a FeesDeducted event is present (should be the last one) then the last 3 events are fee events.
Co-authored-by: Janez Podhostnik <67895329+janezpodhostnik@users.noreply.github.com>
|
@bthaile Can we make sure we update the docs wherever necessary with this new flag? |
Updated here, internal/transactions/get.go in the PR. Are their other docs? good call, I can update developer docs, here https://developers.flow.com/tools/flow-cli/transactions/get-transactions created docs github issue |
|
Thanks @bthaile ! |
Closes: #1151
Description
fee-eventsflag so users can get all events including the fee events.For contributor use:
masterbranchFiles changedin the Github PR explorer