-
Notifications
You must be signed in to change notification settings - Fork 363
Fix: propose when creating or signing #3455
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
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.
As this gets WC approvals 'working', I'll approve this. However, we are over-proposing and errors will appear in the console when non-owners execute.
Pull Request Test Coverage Report for Build 1817905835
💛 - Coveralls |
E2E Tests Failed Failed tests:
|
While testing this, I've encountered some other strange bugs with WC + Safe as a signer. Need to look more closely into it. |
I will revisit the original refactor of these two functions on Friday. |
652a2db
to
9ffca1f
Compare
9ffca1f
to
13800cc
Compare
What I found out about WC+Safe as a signer:
The same behavior occurs on 3.17.2, and on this branch (after fixing the proposal conditions). I've also refactored
|
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.
There are a lot of cases to check but I trust your logic. I have a few questions, nonetheless
src/routes/safe/components/Transactions/TxList/modals/ApproveTxModal.tsx
Outdated
Show resolved
Hide resolved
I've tested the following cases: With MM:
With WC and the Safe mobile app as signer (imported EoA keys):
With WC and a Safe as signer:
|
If this mirrors the behaviour from 3.17.2 then we can assume that the regression has been tackled? Thank you for the breakdown. I will look into this deeper on Friday. |
Yes, basically the fix is that it now proposes a tx on creation, albeit without a signature. |
I tested regular tx in safes 1/1 and 2/2 and I had no issues creating, executing, rejecting tx with owners and non-owners I have this safe where the owners are a MM account and another safe The safe I was testing on The safe owner rin:0xd7F4a1Cca3428eC09bC0fC9dBDFcDb087803fD59 So far it looks good. The only thing I'm missing to test is with the mobile app. |
It's fine, I've tested with the mobile app, it works as good as MM. |
What it solves
Resolves #3448
How this PR fixes it
In 3.17.2, before we refactored create/processTransaction, it worked fine.
Process tx:
https://github.com/gnosis/safe-react/blob/release/3.17.2/src/logic/safe/store/actions/processTransaction.ts#L166-L168
https://github.com/gnosis/safe-react/blob/release/3.17.2/src/logic/safe/store/actions/processTransaction.ts#L135-L138
Create tx:
https://github.com/gnosis/safe-react/blob/release/3.17.2/src/logic/safe/store/actions/createTransaction.ts#L167-L169
https://github.com/gnosis/safe-react/blob/release/3.17.2/src/logic/safe/store/actions/createTransaction.ts#L197-L198
Basically, it proposes when signing, or when creating a new tx.
This PR restores that logic.