(Feature) - #1656 Tx is sent to backend even if not signed#1672
(Feature) - #1656 Tx is sent to backend even if not signed#1672dasanra merged 9 commits intodevelopmentfrom
Conversation
…to feature/1656-tx-not-signed-fix
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
[warning] @typescript-eslint/explicit-module-boundary-types
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
fernandomg
left a comment
There was a problem hiding this comment.
@Agupane, this seems to be the solution for a safe with a threshold of 1.
I think you should check processTransaction as well. If I reject the execution of a tx, it will error without even a notification
| .encodeABI() | ||
| const errMsg = await getErrorMessage(safeInstance.options.address, 0, executeDataUsedSignatures, from) | ||
| console.error(`Error creating the TX - an attempt to get the error message: ${errMsg}`) | ||
| if (err.code !== REJECT_CONFIRM_TX_ERROR_CODE) { |
There was a problem hiding this comment.
If I reject the attempt to sign an off-chain tx, this condition is true as the tryOffchainSigning throws an error without code
There was a problem hiding this comment.
Thanks for the feedback, was very useful, found also more bugs with notifications on proccessTransaction that I fixed as well
|
Travis automatic deployment: |
|
Travis automatic deployment: |
fernandomg
left a comment
There was a problem hiding this comment.
Nice! Unpopular opinion: I love being able to see the error notification 😛
A thing I stumbled upon was one of those console errors that appear from time to time

Following the stack trace, it was triggered here

Can you give it a look and try to fix it in this PR? It will help with #1650
Did you found a way to reproduce this? |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
@Agupane, I couldn't find a way to reproduce it. But I'd try to avoid assuming that I'd go with something around |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |

Closes #1656 by: