-
Notifications
You must be signed in to change notification settings - Fork 363
Fix: show non-owner execution warning only on tx creation #3416
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Pull Request Test Coverage Report for Build 1818188925
💛 - Coveralls |
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.
This is needed. It was put back on the request of Safe Apps.
E2E Tests Failed Failed tests:
|
You mean we should keep the warning but make it say "you're not connected to the safe"? AFAIU, any tx can be executed by a non-owner. But that selector also checks if you're connected at all. |
Perhaps we should also make it Safe App conditional. |
I'm not sure I understand why it should be different for Safe Apps. |
@JagoFigueroa, can we remove this? I believe it was you that requested it be put back? |
Hey guys, if my memory doesn’t fail me I reported this because we went from showing this message to not showing any kind of message at all when a non owner was trying to create + execute (or just create) any tx via safe apps. Going back to that scenario of not providing any feedback why the tx can’t be submitted would not be super critical for us or anything but I don’t see why we should lose this. Cheers! |
Please clarify what exactly we're losing. Instead, |
This is what we show if a non owner goes to the apps section and tries to perform any operation for a safe via safe apps: This is a message that makes sense to have as it provides proper feedback and because I am trying to create a tx (or maybe create + execute depending on the threshold) as a non owner and I shouldn't be able to. For executions that will be done after the tx has already been created? should be all bueno for us but the problem would be to lose this message when tx creation is involved. |
Oh, gotcha, makes thanks. Thanks Jago! |
I'll adjust the logic so that this message is shown only on tx creation. |
700c5ef
to
ef23e3a
Compare
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.
👍
@francovenica I've just updated it from latest dev, should be good now. |
@katspaugh , no message on tx creation using safe-app as a non-owner |
On dev, it's also not shown. Apparently a bug in the modal redesign. Update: I've just checked on prod, this error message isn't displayed there either. It just blocks the submit button. |
Fixed ✅ |
Looks good to me when creating a tx when executing |
What it solves
Non-owner error message should never appear when executing an existing tx.
It can only be shown if a non-owner is trying to create a tx (currently only possible via a Sage App).
How to test
Case 1:
Case 2: