diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 3267e12e3..1d6c044f6 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -1122,6 +1122,11 @@ export default class MetamaskController extends EventEmitter { this.gasFeeController.disconnectPoller, this.gasFeeController, ), + + getGasFeeTimeEstimate: nodeify( + this.gasFeeController.getTimeEstimate, + this.gasFeeController, + ), }; } 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 ee80bddee..f44e5aa26 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 @@ -15,7 +15,6 @@ import { COLORS, TYPOGRAPHY, FONT_WEIGHT, - TEXT_ALIGN, } from '../../../helpers/constants/design-system'; import { areDappSuggestedAndTxParamGasFeesTheSame } from '../../../helpers/utils/confirm-tx.util'; @@ -52,7 +51,6 @@ export default function EditGasDisplay({ setEstimateToUse, estimatedMinimumFiat, estimatedMaximumFiat, - hasGasErrors, dappSuggestedGasFeeAcknowledged, setDappSuggestedGasFeeAcknowledged, showAdvancedForm, @@ -134,7 +132,12 @@ export default function EditGasDisplay({ , ]) } - timing={} + timing={ + + } /> {requireDappAcknowledgement && (