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

Show error while allowing confirmation of transaction where simulation fails

This commit is contained in:
Dan Miller 2018-08-08 21:25:25 -02:30
parent 1d4ee6bf76
commit 973325a6c4
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ export default class ConfirmTransactionBase extends Component {
if (simulationFails) { if (simulationFails) {
return { return {
valid: false, valid: true,
errorKey: TRANSACTION_ERROR_KEY, errorKey: TRANSACTION_ERROR_KEY,
} }
} }

View File

@ -1,3 +1,3 @@
export const INSUFFICIENT_FUNDS_ERROR_KEY = 'insufficientFunds' export const INSUFFICIENT_FUNDS_ERROR_KEY = 'insufficientFunds'
export const GAS_LIMIT_TOO_LOW_ERROR_KEY = 'gasLimitTooLow' export const GAS_LIMIT_TOO_LOW_ERROR_KEY = 'gasLimitTooLow'
export const TRANSACTION_ERROR = 'transactionError' export const TRANSACTION_ERROR_KEY = 'transactionError'