You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This will display a warning in case the Safe knows that a tx will (most likely) fail.
Why is it needed? What is the value? For whom do we build it?
If we know already, that a tx will fail, then we could save users gas costs.
When executing transactions via MetaMask that will revert, MetaMask warns you before you execute the transaction. An easy example is trying to transfer more ERC20 tokens than the account holds to someone else.
Because of implementation details the execution transaction for a Safe transaction will not fail, therefore MetaMask cannot warn you.
High-level overview of the feature
Please check before submitting the execution transaction to the wallet if execTransactionreturns true.
In case there will be an error, display that to the user. Something like "This transaction will most likely fail."
Note 1: This is only possible for the executor, i.e. when all signatures are present.
Note 2: It should still be possible for the user to submit the tx. There are cases, where estimation is not possible
Note 3: Please don't implement the new signing flow design as part of this ticket. That should be done separate.