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

HIP-584: Fix too low estimate values for auto account creation and contract create #6633

Merged
merged 10 commits into from
Aug 15, 2023

Conversation

IvanKavaldzhiev
Copy link
Contributor

@IvanKavaldzhiev IvanKavaldzhiev commented Aug 11, 2023

Description:

Currently gas estimate for hollow account creation and contract creates is too low. This PR adds some missing logic and aligns gas calculator behaviour with services codebase.

Related issue(s):

Fixes #6620

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
@IvanKavaldzhiev IvanKavaldzhiev added bug Type: Something isn't working web3 Area: Web3 API limechain Work planned for the LimeChain team labels Aug 11, 2023
@IvanKavaldzhiev IvanKavaldzhiev self-assigned this Aug 11, 2023
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage: 92.98% and project coverage change: -0.01% ⚠️

Comparison is base (56c5e32) 92.56% compared to head (530d399) 92.55%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6633      +/-   ##
============================================
- Coverage     92.56%   92.55%   -0.01%     
- Complexity     6506     6511       +5     
============================================
  Files           844      845       +1     
  Lines         27428    27458      +30     
  Branches       3138     3140       +2     
============================================
+ Hits          25389    25415      +26     
- Misses         1326     1329       +3     
- Partials        713      714       +1     
Files Changed Coverage Δ
...services/contracts/execution/LivePricesSource.java 88.23% <88.23%> (ø)
...ntracts/gascalculator/GasCalculatorHederaUtil.java 88.88% <88.88%> (ø)
.../mirror/web3/evm/config/ServicesConfiguration.java 100.00% <100.00%> (ø)
.../evm/contracts/execution/MirrorEvmTxProcessor.java 100.00% <100.00%> (ø)
...acts/execution/MirrorEvmTxProcessorFacadeImpl.java 100.00% <100.00%> (ø)
...ontracts/gascalculator/GasCalculatorHederaV19.java 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
georgi-l95
georgi-l95 previously approved these changes Aug 11, 2023
Copy link
Contributor

@georgi-l95 georgi-l95 left a comment

Choose a reason for hiding this comment

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

LG, now web3 provides correct estimate values, tested locally.

Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
…imate-values

# Conflicts:
#	hedera-mirror-web3/src/test/java/com/hedera/mirror/web3/service/ContractCallTestSetup.java

Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
Signed-off-by: IvanKavaldzhiev <ivankavaldzhiev@gmail.com>
@IvanKavaldzhiev IvanKavaldzhiev added limechain Work planned for the LimeChain team and removed limechain Work planned for the LimeChain team labels Aug 15, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@steven-sheehy steven-sheehy merged commit 52a3fd7 into main Aug 15, 2023
25 checks passed
@steven-sheehy steven-sheehy deleted the 06620-fix-too-low-estimate-values branch August 15, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working limechain Work planned for the LimeChain team web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIP-584: Estimate for contract creates and hollow account creation is too low
3 participants