-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Change threshold flow #2085
Conversation
Branch preview✅ Deploy successful! https://change_threshold_flow--walletweb.review-wallet-web.5afe.dev |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
@@ -34,7 +34,7 @@ const SignOrExecuteForm = (props: SignOrExecuteProps): ReactElement => { | |||
const willExecute = (props.onlyExecute || shouldExecute) && canExecute | |||
|
|||
// Estimate gas limit | |||
const { gasLimit, gasLimitError } = useGasLimit(safeTx) | |||
const { gasLimit, gasLimitError } = useGasLimit(willExecute ? safeTx : undefined) |
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.
Why this change? Gas limit is needed for simulation. If it's only estimated for executions, it should be moved to the ExecuteForm.
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 was a regression when we refactored this component. Moving it into the ExecuteForm
would make the Simulation always fetch the latest block gas limit which is less accurate so I would suggest keeping it here for now.
What it solves
Part of #2067
How this PR fixes it
How to test it
Screenshots
Checklist