Replies: 2 comments 3 replies
-
Nothing? |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In some type of TXs where there is a bit of randomness which makes the gas usage vary, I like to get the gas estimation and increase it by an amount (let's say 1.5 times the simulated value).
On wagmi 1.x I could do it getting the usePrepareContractWrite gas estimation, however, "useSimulateContract" doesn't return the estimated gas. But, I assume that under the hood it should know about it as it is simulation the TX, but it is not being exposed.
Could you expose the gas usage for "useSimulateContract"?
Beta Was this translation helpful? Give feedback.
All reactions