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

EIP-1559 - Ensure gas limit is of minimum value (#11702)

This commit is contained in:
Dan J Miller 2021-07-31 10:32:14 -02:30 committed by GitHub
parent 39823b3800
commit 9c0e34b264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ export default function AdvancedGasControls({
maxPriorityFeeFiat, maxPriorityFeeFiat,
maxFeeFiat, maxFeeFiat,
gasErrors, gasErrors,
minimumGasLimit = 21000,
networkSupportsEIP1559, networkSupportsEIP1559,
minimumGasLimit,
}) { }) {
const t = useContext(I18nContext); const t = useContext(I18nContext);
const networkSupports1559 = useSelector(isEIP1559Network); const networkSupports1559 = useSelector(isEIP1559Network);

View File

@ -5,7 +5,7 @@ import { isEIP1559Network } from '../../../ducks/metamask/metamask';
import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs'; import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs';
import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations'; import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations';
import { EDIT_GAS_MODES } from '../../../../shared/constants/gas'; import { EDIT_GAS_MODES, GAS_LIMITS } from '../../../../shared/constants/gas';
import { import {
decGWEIToHexWEI, decGWEIToHexWEI,
@ -37,7 +37,7 @@ export default function EditGasPopover({
transaction, transaction,
mode, mode,
onClose, onClose,
minimumGasLimit, minimumGasLimit = GAS_LIMITS.SIMPLE,
}) { }) {
const t = useContext(I18nContext); const t = useContext(I18nContext);
const dispatch = useDispatch(); const dispatch = useDispatch();