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:
parent
df84a6efa6
commit
b5baa6c1d1
@ -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"
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user