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