|
|
|
@ -112,6 +112,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
maxFeePerGas: PropTypes.string, |
|
|
|
|
maxPriorityFeePerGas: PropTypes.string, |
|
|
|
|
baseFeePerGas: PropTypes.string, |
|
|
|
|
gasFeeIsCustom: PropTypes.bool, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
state = { |
|
|
|
@ -196,6 +197,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
txData: { simulationFails, txParams: { value: amount } = {} } = {}, |
|
|
|
|
customGas, |
|
|
|
|
noGasPrice, |
|
|
|
|
gasFeeIsCustom, |
|
|
|
|
} = this.props; |
|
|
|
|
|
|
|
|
|
const insufficientBalance = |
|
|
|
@ -230,7 +232,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (noGasPrice) { |
|
|
|
|
if (noGasPrice && !gasFeeIsCustom) { |
|
|
|
|
return { |
|
|
|
|
valid: false, |
|
|
|
|
errorKey: GAS_PRICE_FETCH_FAILURE_ERROR_KEY, |
|
|
|
@ -829,6 +831,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
showAccountInHeader, |
|
|
|
|
txData, |
|
|
|
|
gasIsLoading, |
|
|
|
|
gasFeeIsCustom, |
|
|
|
|
} = this.props; |
|
|
|
|
const { |
|
|
|
|
submitting, |
|
|
|
@ -895,7 +898,7 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
lastTx={lastTx} |
|
|
|
|
ofText={ofText} |
|
|
|
|
requestsWaitingText={requestsWaitingText} |
|
|
|
|
disabled={!valid || submitting || gasIsLoading} |
|
|
|
|
disabled={!valid || submitting || (gasIsLoading && !gasFeeIsCustom)} |
|
|
|
|
onEdit={() => this.handleEdit()} |
|
|
|
|
onCancelAll={() => this.handleCancelAll()} |
|
|
|
|
onCancel={() => this.handleCancel()} |
|
|
|
|