-
Notifications
You must be signed in to change notification settings - Fork 363
Allow non-owners to execute confirmed (rejection) transactions #3151
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Deployment links
|
E2E Tests Failed Failed tests:
|
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.
Code looks good.
Could you check that the Execute button is still deactivated when you're on a wrong chain?
Also please don't merge for now, to keep dev available for RC fixes.
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.
Nice! 👍
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.
Looks good!
@johannesmoormann, can you give it another try after the deploy has finished? |
Question: cc @johannesmoormann Currently a owner not connected can see the execute button, but the gas estimation doesn't work, the "nonce" value for the user's wallet (not the safe nonce) and the execution of tx themselves don't work |
@francovenica somebody who is not connected should not be able to execute the transaction through the interface. current behavior is ok though. we might want to show a message to the user, that he needs to connect his wallet in order to carry out the execution in the future. |
@johannesmoormann Ok, Then I'll ask for the execute button to be removed if there nobody connected to the safe app. Thanks |
The execute button should be disabled, not removed. |
Do we have a preferred way of approaching this? Or does a simple label modification suffice? @johannesmoormann |
I would wait to see if there is a need for this. Until then, I think it is perfectly fine to leave it as it is, since the tools to explore the executor are already there. |
The confirm button is no longer in the history tab. That's fixed Something has changed. I can no longer sign with a non-owner. I get an error in the console stating that |
Insights from the meeting I've just had with @iamacook:
Let me know if you have any questions 🙂 |
Yes please. It's not good to have an error on the console and also to do not required requests to the service |
Hola guys, I see that the message for when trying to create & execute a tx from a safe-app with a non owner has changed from the previous: 'You are currently not an owner of this Safe and won't be able to submit this tx' that was notifying the user that an app cannot be used as a non owner. The thing is that trying to use apps as a non owner I've found these 2 scenarios:
Edited to add a little bit more of context :) |
@JagoFigueroa, good catch! I've added an issue about it here. |
What it solves
Resolves #1811
How this PR fixes it
Transactions with sufficient confirmations are now executable by non-owners.
The
canExecute
action flag was modified to not requireisUserAnOwner
. All instances of theisUserAnOwner
were remove, where logical. Associated styling was updated and unnecessary props removed.Note: a bug within
processTransaction()
was fixed by including a fallback fortxHash
when an error occurs.How to test it
The above is also possible with rejection transactions (see below).
Screenshots
Issues found: