Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

(Fix) - #1804 Tx gas estimation fail for threshold >= 3 #1808

Merged
merged 6 commits into from
Jan 26, 2021

Conversation

Agupane
Copy link
Contributor

@Agupane Agupane commented Jan 22, 2021

Closes #1804 by:

  • Fixing the checkIfTxIsExecution method to validate that if there is preApprovingOwner: it should also reach the threshold to be considered an executionTransaction and not a transactionApproval
  • Add tests

@Agupane Agupane self-assigned this Jan 22, 2021
@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Jan 22, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 1 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/volta/app

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/volta/app

Copy link
Contributor

@matextrem matextrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 25, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/volta/app

@francovenica
Copy link
Contributor

Env and safe: https://pr1808--safereact.review.gnosisdev.com/rinkeby/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/transactions

I've checked myself setting a safe with 3 owners needed to sign (I assume 4 or more is the same situation as 3, since after the first one and before the last one the system is collecting signatures and that's what it was failing)

Tested with MM and a trezor:

Send funds
Send collectibles
Custom transaction (A Dai tx with the ERC20 contract methods)
An app tx (compound withdrawal)
Change in the settings (modify policies)
A tx rejection

Checked with 2 owners it still works fine:
Send funds
App tx
A tx rejection

I forced the warning message to show up by queuing 2 tx that executing the first would made fail the second. It worked fine as well

@ghost
Copy link

ghost commented Jan 26, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/rinkeby/app

@ghost
Copy link

ghost commented Jan 26, 2021

Travis automatic deployment:
https://pr1808--safereact.review.gnosisdev.com/volta/app

@dasanra dasanra merged commit 19be231 into development Jan 26, 2021
@dasanra dasanra deleted the fix/1804-tx-gas-fail-for-threshold-3 branch January 26, 2021 18:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tx marked as "This transaction will most likely fail" even though it doesn't
4 participants