mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
EIP-1559 - Fix duplicated networkSupports1559 variables (#11679)
This commit is contained in:
parent
5e18013468
commit
cbfde8a080
@ -60,7 +60,6 @@ export default function EditGasDisplay({
|
|||||||
warning,
|
warning,
|
||||||
gasErrors,
|
gasErrors,
|
||||||
onManualChange,
|
onManualChange,
|
||||||
networkSupports1559,
|
|
||||||
}) {
|
}) {
|
||||||
const t = useContext(I18nContext);
|
const t = useContext(I18nContext);
|
||||||
|
|
||||||
@ -267,5 +266,4 @@ EditGasDisplay.propTypes = {
|
|||||||
transaction: PropTypes.object,
|
transaction: PropTypes.object,
|
||||||
gasErrors: PropTypes.object,
|
gasErrors: PropTypes.object,
|
||||||
onManualChange: PropTypes.func,
|
onManualChange: PropTypes.func,
|
||||||
networkSupports1559: PropTypes.boolean,
|
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,6 @@ import { useDispatch, useSelector } from 'react-redux';
|
|||||||
import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs';
|
import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs';
|
||||||
import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations';
|
import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations';
|
||||||
|
|
||||||
import { isEIP1559Network } from '../../../ducks/metamask/metamask';
|
|
||||||
import {
|
import {
|
||||||
GAS_ESTIMATE_TYPES,
|
GAS_ESTIMATE_TYPES,
|
||||||
EDIT_GAS_MODES,
|
EDIT_GAS_MODES,
|
||||||
@ -43,7 +42,6 @@ export default function EditGasPopover({
|
|||||||
const t = useContext(I18nContext);
|
const t = useContext(I18nContext);
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const showSidebar = useSelector((state) => state.appState.sidebar.isOpen);
|
const showSidebar = useSelector((state) => state.appState.sidebar.isOpen);
|
||||||
const networkSupports1559 = useSelector(isEIP1559Network);
|
|
||||||
|
|
||||||
const shouldAnimate = useShouldAnimateGasEstimations();
|
const shouldAnimate = useShouldAnimateGasEstimations();
|
||||||
|
|
||||||
@ -229,7 +227,6 @@ export default function EditGasPopover({
|
|||||||
hasGasErrors={hasGasErrors}
|
hasGasErrors={hasGasErrors}
|
||||||
gasErrors={gasErrors}
|
gasErrors={gasErrors}
|
||||||
onManualChange={onManualChange}
|
onManualChange={onManualChange}
|
||||||
networkSupports1559={networkSupports1559}
|
|
||||||
{...editGasDisplayProps}
|
{...editGasDisplayProps}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user