From cbfde8a08030110068d97c371cb2c24a49b7ed63 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Fri, 30 Jul 2021 05:11:27 -0500 Subject: [PATCH] EIP-1559 - Fix duplicated networkSupports1559 variables (#11679) --- .../app/edit-gas-display/edit-gas-display.component.js | 2 -- .../app/edit-gas-popover/edit-gas-popover.component.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/ui/components/app/edit-gas-display/edit-gas-display.component.js b/ui/components/app/edit-gas-display/edit-gas-display.component.js index 76b43d338..184e25ab3 100644 --- a/ui/components/app/edit-gas-display/edit-gas-display.component.js +++ b/ui/components/app/edit-gas-display/edit-gas-display.component.js @@ -60,7 +60,6 @@ export default function EditGasDisplay({ warning, gasErrors, onManualChange, - networkSupports1559, }) { const t = useContext(I18nContext); @@ -267,5 +266,4 @@ EditGasDisplay.propTypes = { transaction: PropTypes.object, gasErrors: PropTypes.object, onManualChange: PropTypes.func, - networkSupports1559: PropTypes.boolean, }; diff --git a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js index 51433e23a..fc55ec9a2 100644 --- a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js +++ b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js @@ -5,7 +5,6 @@ import { useDispatch, useSelector } from 'react-redux'; import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs'; import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations'; -import { isEIP1559Network } from '../../../ducks/metamask/metamask'; import { GAS_ESTIMATE_TYPES, EDIT_GAS_MODES, @@ -43,7 +42,6 @@ export default function EditGasPopover({ const t = useContext(I18nContext); const dispatch = useDispatch(); const showSidebar = useSelector((state) => state.appState.sidebar.isOpen); - const networkSupports1559 = useSelector(isEIP1559Network); const shouldAnimate = useShouldAnimateGasEstimations(); @@ -229,7 +227,6 @@ export default function EditGasPopover({ hasGasErrors={hasGasErrors} gasErrors={gasErrors} onManualChange={onManualChange} - networkSupports1559={networkSupports1559} {...editGasDisplayProps} />