Merge pull request #5000 from MetaMask/contract-method-conf-sim-failure

Show error while allowing confirmation of tx where simulation fails
feature/default_network_editable
Dan J Miller 6 years ago committed by GitHub
commit d4af5b7bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
  2. 2
      ui/app/constants/error-keys.js

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

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

Loading…
Cancel
Save