-
Notifications
You must be signed in to change notification settings - Fork 9
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
[ABW-2168] Bug fix - Show totalExecutionCost
under "NETWORK EXECUTION" (instead of executionCost
)
#703
Conversation
totalExecutionCost
under "NETWORK EXECUTION" (instead of executionCost
)
name: L10n.TransactionReview.CustomizeNetworkFeeSheet.royalties, | ||
amount: feeSummary.royaltyCost, | ||
isUserConfigurable: false | ||
), | ||
]) | ||
|
||
if paidByDapps > .zero { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I would prefer base to be mutable and called result, and you append to it. Failing that, at least put return base
in an else
. This is just stylistic, obviously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not my code, but agreed, will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
state.networkFee = .init(reviewedTransaction: reviewedTransaction) | ||
} | ||
state.networkFee = .init(reviewedTransaction: reviewedTransaction) | ||
// printFeePayerInfo() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A FIXME?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be fixed now, when merging main into this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only stylistic concerns
Jira ticket: ABW-2168
Description
Solves UI bug on iOS were we accidentally displayed
executionCost
instead oftotalExecutionCost
which is correct to show.How to test
Use Gumball Club dapp, send a swap tx, check the Advanced Fee view and assert that if you sum up all the parts, the sum eq the TRANSACTION FEE displayed in the bottom.
Screenshot
Video
RPReplay_Final1693564218.MP4
PR submission checklist