Skip to content
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

fix: Use custom safeTxGas for simulations #1439

Merged
merged 1 commit into from
Jan 2, 2023
Merged

Conversation

usame-algan
Copy link
Member

What it solves

Resolves #1294

How this PR fixes it

  • Uses the updated tx object for simulations

How to test it

  1. Open a 1.1.1 safe
  2. Create a new transaction
  3. Simulate
  4. Observe that Tenderly receives the initially estimated safeTxGas
  5. Change the safeTxGas
  6. Simulate
  7. Observe that Tenderly receives the custom safeTxGas

@github-actions
Copy link

github-actions bot commented Dec 22, 2022

Branch preview

✅ Deploy successful!

https://simulate_safetxgas--webcore.review-web-core.5afe.dev

@github-actions
Copy link

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 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@@ -238,7 +238,7 @@ const SignOrExecuteForm = ({

<TxSimulation
gasLimit={advancedParams.gasLimit?.toNumber()}
transactions={safeTx}
transactions={tx}
Copy link
Member

Choose a reason for hiding this comment

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

Oh, damn, I can see why this was easy to miss. Maybe we should rename safeTx to _originalTx or something?

@francovenica
Copy link
Contributor

Looks good. I compared with current prod and this PR, and I could verify that tenderly is receiving the edited safeTxGas set by the user.

image
image

@usame-algan usame-algan merged commit 9597d39 into dev Jan 2, 2023
@usame-algan usame-algan deleted the simulate-safetxgas branch January 2, 2023 15:55
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2023
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.

Custom safeTxGas is not used for simulations
3 participants