-
Notifications
You must be signed in to change notification settings - Fork 111
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
Refactor ContractCallNestedCallsHistoricalTest #9164
Conversation
Signed-off-by: Kristiyan Selveliev <kristiyan.selveliev@limechain.tech>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9164 +/- ##
=========================================
Coverage 92.14% 92.14%
- Complexity 7713 7714 +1
=========================================
Files 933 933
Lines 30823 30823
Branches 3762 3762
=========================================
Hits 28402 28402
Misses 1575 1575
Partials 846 846 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Kristiyan Selveliev <kristiyan.selveliev@limechain.tech>
Quality Gate passedIssues Measures |
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.
LGTM
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.
LGTM
Description:
This pr refactors
ContractCallNestedCallsHistoricalTest
to use the web3j plugin and use native java type.The class test 3 method
getTokenInfo
,getApproved
andmintNft
in historical context.The historical context is for blocks pre evm 34 version.
This PR modifies:
TestWeb3jService
- Adds a new check to execute estimate gas calls only when we are not in historical context since estimate gas does not support historical blocks.Added
NestedCallHistorical
.sol file. Modified the 3 tests to not return "hardcoded result" but instead take the response from the Hts call.Modified
ContractCallNestedCallsHistoricalTest
to use the new approach with web3j.Related issue(s):
Fixes #8956
Notes for reviewer:
Checklist