1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

EIP-1559 - Update tooltip text for gas fees (#11805)

This commit is contained in:
David Walsh 2021-08-13 19:13:21 -05:00 committed by GitHub
parent df84a6efa6
commit b5baa6c1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -2523,7 +2523,7 @@
"message": "Gas fees are set by the network and fluctuate based on network traffic and transaction complexity." "message": "Gas fees are set by the network and fluctuate based on network traffic and transaction complexity."
}, },
"transactionDetailGasTooltipIntro": { "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": { "transactionDetailGasTotalSubtitle": {
"message": "Amount + gas fee" "message": "Amount + gas fee"

View File

@ -112,6 +112,7 @@ export default class ConfirmTransactionBase extends Component {
maxFeePerGas: PropTypes.string, maxFeePerGas: PropTypes.string,
maxPriorityFeePerGas: PropTypes.string, maxPriorityFeePerGas: PropTypes.string,
baseFeePerGas: PropTypes.string, baseFeePerGas: PropTypes.string,
isMainnet: PropTypes.bool,
}; };
state = { state = {
@ -289,6 +290,7 @@ export default class ConfirmTransactionBase extends Component {
primaryTotalTextOverrideMaxAmount, primaryTotalTextOverrideMaxAmount,
maxFeePerGas, maxFeePerGas,
maxPriorityFeePerGas, maxPriorityFeePerGas,
isMainnet,
} = this.props; } = this.props;
const { t } = this.context; const { t } = this.context;
@ -416,7 +418,11 @@ export default class ConfirmTransactionBase extends Component {
<InfoTooltip <InfoTooltip
contentText={ contentText={
<> <>
<p>{t('transactionDetailGasTooltipIntro')}</p> <p>
{t('transactionDetailGasTooltipIntro', [
isMainnet ? t('networkNameEthereum') : '',
])}
</p>
<p>{t('transactionDetailGasTooltipExplanation')}</p> <p>{t('transactionDetailGasTooltipExplanation')}</p>
<p> <p>
<a <a