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

[ABW-2168] Bug fix - Show totalExecutionCost under "NETWORK EXECUTION" (instead of executionCost) #703

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

CyonAlexRDX
Copy link
Contributor

@CyonAlexRDX CyonAlexRDX commented Sep 1, 2023

Jira ticket: ABW-2168

Description

Solves UI bug on iOS were we accidentally displayed executionCost instead of totalExecutionCost 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

IMG_B2BC6A71C299-1

Video

RPReplay_Final1693564218.MP4

PR submission checklist

  • I have tested account to account transfer flow and have confirmed that it works, TXID here

@CyonAlexRDX CyonAlexRDX changed the title Abw 2168 wrong network fees [ABW-2168] Bug fix - Show totalExecutionCost under "NETWORK EXECUTION" (instead of executionCost) Sep 1, 2023
name: L10n.TransactionReview.CustomizeNetworkFeeSheet.royalties,
amount: feeSummary.royaltyCost,
isUserConfigurable: false
),
])

if paidByDapps > .zero {
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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()
Copy link
Contributor

Choose a reason for hiding this comment

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

A FIXME?

Copy link
Contributor Author

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

Copy link
Contributor

@kugel3 kugel3 left a comment

Choose a reason for hiding this comment

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

Only stylistic concerns

@CyonAlexRDX CyonAlexRDX merged commit a9668a9 into main Sep 1, 2023
5 checks passed
@CyonAlexRDX CyonAlexRDX deleted the ABW_2168_wrong_network_fees branch September 1, 2023 12:43
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants