-
Notifications
You must be signed in to change notification settings - Fork 295
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
[DDW-575] Handle 'transaction is too big' transaction error #1308
[DDW-575] Handle 'transaction is too big' transaction error #1308
Conversation
…-big-transaction-error
…on-error' of https://github.com/input-output-hk/daedalus into feature/ddw-575-handle-transaction-is-too-big-transaction-error
@daniloprates here's Japanese translation:
...the last part |
@DominikGuzei @MarcusHurney for this task it was implemented a way to add links to a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniloprates
I'd like to suggest moving the FormattedHTMLMessageWithLink.js
file from source/renderer/app/utils
into source/renderer/app/components/widgets
since it's a component.
@daniloprates can you tell us an easy way how to test this error? |
@MarcusHurney makes total sense. Done. |
Replace the try/catch on calculateTransactionFee and createTransaction by |
@daniloprates Outside of that little fix, the error message looks like it is working correctly when I tested it in In |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniloprates @DominikGuzei
One more thing, I this PR needs to target the release branch release/0.13.0
, which does not exist yet. I am going to create it from develop
, and then this PR needs to point at it.
@MarcusHurney, we need DDW-565 completed for 0.13.0. Maybe we should wait while both this PR and that one are merged before creating the release branch. |
@daniloprates @MarcusHurney im wondering why the error should be shown on the confirmation dialog? Shouldn't the submit button be disabled if the error is shown on the form (and thus the user would never get to the confirmation dialog?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great for me! 🎉 (i couldn't reproduce the issue with the confirmation dialog @MarcusHurney has mentioned)
This PR should target develop so thats fine
@daniloprates @DominikGuzei @MarcusHurney is this one ready to be merged? |
@nikolaglumac yes i think so, the PR itself works correctly - the only thing that Danilo did since last week was to fix the ADA renaming stuff … not sure how critical those updates are but it seems like his last three commits have been dedicated to iron out the last issues. |
Thanks @DominikGuzei - I will review it again. |
This PR implements a handle for the 'transaction is too big' error in the "fee calculation:" and "create transaction" actions.
This error happens the user making the transaction has their amount distributed among too many addresses, therefore the transaction needs to use too many input addresses.
Todo:
TooBigTransaction
error messageAmount too big due to wallet fragmentation. Learn more.
- @darko-mijicウォレットのフラグメンテーションの為、額が大きすぎます。もっと詳しく知る
- @nikolaglumacAda
withada
- it should NOT be written with a capital A - @danilopratesNote: The text part
Learn more
should be a link to:Screenshot:
Review Checklist:
Basics
yarn run test
)yarn run dev
)yarn run package
/ CI builds)yarn run flow:test
)yarn run lint
)yarn run manage:translations
produces no changes)yarn run storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review:
done
on the Youtrack board