You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
The current flow for the gas estimation in Kakarot greatly divergences from the flow in Reth/Geth: both Reth and Geth use a binary search given a lower and upper bound for gas limit (link for Reth) whereas Kakarot sets the gas limit in the call to 5 millions and returns the gas_used + gas_refund as a gas estimation.
This can cause issue for example in the following scenario:
Current available gas is 5M, used 10k: internal call in contract requires a gas limit of 95k but uses only 10k gas.
Call proceeds and tx ends with 30k gas used.
Kakarot returns 30k estimate gas, while transaction actually requires at least 95k gas in order to pass.
Tasks:
The content you are editing has changed. Please copy your edits and refresh the page.
<!--- Please provide a general summary of your changes in the title
above -->
<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days? -->
Time spent on this PR: 0.5 day
## Pull request type
<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->
Please check the type of change your PR introduces:
- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):
## What is the current behavior?
Missing sepolia to the list of testnets
<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->
Resolves #NA
## What is the new behavior?
Add sepolia to the list of testnets.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1051)
<!-- Reviewable:end -->
Bug Report
Current behavior:
The current flow for the gas estimation in Kakarot greatly divergences from the flow in Reth/Geth: both Reth and Geth use a binary search given a lower and upper bound for gas limit (link for Reth) whereas Kakarot sets the gas limit in the call to 5 millions and returns the
gas_used + gas_refund
as a gas estimation.This can cause issue for example in the following scenario:
Tasks:
Tasks
estimate_gas_helper
by 20%. #1052The text was updated successfully, but these errors were encountered: