From b5baa6c1d180b3a21ab70e31ad885f882f6570ad Mon Sep 17 00:00:00 2001 From: David Walsh Date: Fri, 13 Aug 2021 19:13:21 -0500 Subject: [PATCH] EIP-1559 - Update tooltip text for gas fees (#11805) --- app/_locales/en/messages.json | 2 +- .../confirm-transaction-base.component.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index ab6abbbfa..12eb881d1 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2523,7 +2523,7 @@ "message": "Gas fees are set by the network and fluctuate based on network traffic and transaction complexity." }, "transactionDetailGasTooltipIntro": { - "message": "Gas fees are paid to crypto miners who process transactions on the Ethereum network. MetaMask does not profit from gas fees." + "message": "Gas fees are paid to crypto miners who process transactions on the $1 network. MetaMask does not profit from gas fees." }, "transactionDetailGasTotalSubtitle": { "message": "Amount + gas fee" diff --git a/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js index ec0ca03ed..1fc3a8d26 100644 --- a/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js +++ b/ui/pages/confirm-transaction-base/confirm-transaction-base.component.js @@ -112,6 +112,7 @@ export default class ConfirmTransactionBase extends Component { maxFeePerGas: PropTypes.string, maxPriorityFeePerGas: PropTypes.string, baseFeePerGas: PropTypes.string, + isMainnet: PropTypes.bool, }; state = { @@ -289,6 +290,7 @@ export default class ConfirmTransactionBase extends Component { primaryTotalTextOverrideMaxAmount, maxFeePerGas, maxPriorityFeePerGas, + isMainnet, } = this.props; const { t } = this.context; @@ -416,7 +418,11 @@ export default class ConfirmTransactionBase extends Component { -

{t('transactionDetailGasTooltipIntro')}

+

+ {t('transactionDetailGasTooltipIntro', [ + isMainnet ? t('networkNameEthereum') : '', + ])} +

{t('transactionDetailGasTooltipExplanation')}