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
Distinguish auto-approvals in synthetic CryptoTransfer
transfer lists
#6290
Distinguish auto-approvals in synthetic CryptoTransfer
transfer lists
#6290
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>
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.
Looking good.
2 suggestions - 1 for readability of tests and the other a missing TransactionID field check
...m/hedera/node/app/service/mono/store/contracts/precompile/impl/SynthApprovalRecordsTest.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/hedera/services/bdd/spec/utilops/streams/assertions/IdScreenedAssertion.java
Outdated
Show resolved
Hide resolved
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #6290 +/- ##
==============================================
+ Coverage 0 91.11% +91.11%
- Complexity 0 17069 +17069
==============================================
Files 0 1294 +1294
Lines 0 49012 +49012
Branches 0 4918 +4918
==============================================
+ Hits 0 44656 +44656
- Misses 0 3424 +3424
- Partials 0 932 +932
☔ View full report in Codecov by Sentry. |
...ava/com/hedera/node/app/service/mono/store/contracts/precompile/impl/TransferPrecompile.java
Show resolved
Hide resolved
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.
LGTM
One suggestion for adding a debit check if useful
...ava/com/hedera/node/app/service/mono/store/contracts/precompile/impl/TransferPrecompile.java
Show resolved
Hide resolved
...ava/com/hedera/node/app/service/mono/store/contracts/precompile/impl/TransferPrecompile.java
Show resolved
Hide resolved
...ava/com/hedera/node/app/service/mono/store/contracts/precompile/impl/TransferPrecompile.java
Outdated
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 !
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
1427c43
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.
LGTM ! Thanks @tinker-michaelj
Kudos, SonarCloud Quality Gate passed! |
Description:
TransferPrecompile
to produce a syntheticCryptoTransferTransactionBody
withis_approval = true
for each asset change that was automatically switched to use an approval/allowance.RecordStreamAssertion
implementation.