Skip to content

Commit

Permalink
Merge pull request #5000 from MetaMask/contract-method-conf-sim-failure
Browse files Browse the repository at this point in the history
Show error while allowing confirmation of tx where simulation fails
  • Loading branch information
danjm authored Aug 9, 2018
2 parents 1ae668f + 973325a commit d4af5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default class ConfirmTransactionBase extends Component {

if (simulationFails) {
return {
valid: false,
valid: true,
errorKey: TRANSACTION_ERROR_KEY,
}
}
Expand Down
2 changes: 1 addition & 1 deletion ui/app/constants/error-keys.js
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit d4af5b7

Please sign in to comment.