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
0.35 - Cherry pick precompile permission change #5572
0.35 - Cherry pick precompile permission change #5572
Conversation
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
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.
Something is wrong with CI, probably re-run
The latest changes and the integration/E2E test fixes from the other PR have not been picked here, that's why some of the tests are failing. |
...java/com/hedera/node/app/service/mono/store/contracts/precompile/HTSPrecompiledContract.java
Show resolved
Hide resolved
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release/0.35 #5572 +/- ##
===============================================
Coverage ? 95.36%
Complexity ? 16348
===============================================
Files ? 1185
Lines ? 46714
Branches ? 4762
===============================================
Hits ? 44548
Misses ? 1335
Partials ? 831 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
|
buildSrc/src/main/kotlin/com.hedera.hashgraph.jpms-modules.gradle.kts
Outdated
Show resolved
Hide resolved
...java/com/hedera/node/app/service/mono/store/contracts/precompile/HTSPrecompiledContract.java
Show resolved
Hide resolved
...st/java/com/hedera/node/app/service/mono/store/contracts/precompile/InvalidDelegateTest.java
Show resolved
Hide resolved
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.
Makes sense to me !
...java/com/hedera/node/app/service/mono/store/contracts/precompile/HTSPrecompiledContract.java
Show resolved
Hide resolved
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 ! Other than one place where we could throw or log CATASTROPHIC message. Also some E2E tests are failing. May be flaky.
| NOT_SUPPORTED_TXN, | ||
| CONTRACT_REVERT_EXECUTED, | ||
| recordWith().status(NOT_SUPPORTED))); | ||
| .hasCostAnswerPrecheck(INVALID_ACCOUNT_ID)); |
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.
We should revisit this test case. It doesn't depend on delegate call, the bytecode just happens to have outdated HederaTokenService.sol compiled in.
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.
My only concern is we should fix LeakyConteactTestsSuite
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
…recompile-permission-change
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
|
SonarCloud Quality Gate failed. |
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.
Looks great ! Thank you @tinker-michaelj








Description:
delegatecall's to precompile contracts.contracts.permittedDelegateCallers=whitelist to allow contracts known to be safe to bypass the default limitation.