Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show error while allowing confirmation of tx where simulation fails #5000

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Aug 8, 2018

fixes #4980

Before:
screenshot from 2018-08-08 21-18-18

After:
screenshot from 2018-08-08 21-24-42

@danjm danjm requested review from alextsg and whymarrh as code owners August 8, 2018 23:58
@danjm danjm requested a review from jennypollack August 8, 2018 23:58
Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -124,7 +124,7 @@ export default class ConfirmTransactionBase extends Component {

if (simulationFails) {
return {
valid: false,
valid: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, good catch

@@ -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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should expand our ESLint rules to include something like import/no-unresolved

@danjm danjm merged commit d4af5b7 into develop Aug 9, 2018
@whymarrh whymarrh deleted the contract-method-conf-sim-failure branch August 9, 2018 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confirm button is not clickable
3 participants