-
{t('maxBaseFee')}
-
+
{maxFeePerGas && (
-
{roundToDecimalPlacesRemovingExtraZeroes(maxFeePerGas, 4)}
-
+
)}
-
{t('priorityFeeProperCase')}
-
+
{maxPriorityFeePerGas && (
-
@@ -151,25 +155,27 @@ const EditGasToolTip = ({
maxPriorityFeePerGas,
4,
)}
-
+
)}
-
{t('gasLimit')}
-
+
{gasLimit && (
-
{roundToDecimalPlacesRemovingExtraZeroes(gasLimit, 4)}
-
+
)}
diff --git a/ui/components/app/modals/contract-details-modal/contract-details-modal.js b/ui/components/app/modals/contract-details-modal/contract-details-modal.js
index 3316ff588..e6250a280 100644
--- a/ui/components/app/modals/contract-details-modal/contract-details-modal.js
+++ b/ui/components/app/modals/contract-details-modal/contract-details-modal.js
@@ -9,10 +9,9 @@ import { useI18nContext } from '../../../../hooks/useI18nContext';
import Identicon from '../../../ui/identicon';
import { ellipsify } from '../../../../pages/send/send.utils';
import Popover from '../../../ui/popover';
-import Typography from '../../../ui/typography';
import {
- FONT_WEIGHT,
- TypographyVariant,
+ FontWeight,
+ TextVariant,
DISPLAY,
Size,
BorderStyle,
@@ -25,7 +24,7 @@ import { useCopyToClipboard } from '../../../../hooks/useCopyToClipboard';
import { getAddressBookEntry } from '../../../../selectors';
import { TokenStandard } from '../../../../../shared/constants/transaction';
import NftCollectionImage from '../../../ui/nft-collection-image/nft-collection-image';
-import { ButtonIcon, IconName } from '../../../component-library';
+import { ButtonIcon, IconName, Text } from '../../../component-library';
export default function ContractDetailsModal({
onClose,
@@ -62,32 +61,35 @@ export default function ContractDetailsModal({
paddingLeft={4}
className="contract-details-modal__content"
>
-