-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: use "inline" auto-association fee payments #14291
Conversation
Signed-off-by: Lev Povolotsky <[email protected]>
…ptoTransfer` (#14123) Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
…rom develop) (#14131) Signed-off-by: David S Bakin <[email protected]>
…Commit, releaseDevelopCommit, releaseDevelopDailySnapshot, releaseDevelopSnapshot, releasePrereleaseChannel) (#14150) Signed-off-by: Elijah Lynn <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
…rizedRaw system contract method (#14193) Signed-off-by: David S Bakin <[email protected]>
…n failure (#14218) Signed-off-by: David S Bakin <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
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.
Some comments for your consideration.
(Also, is this a chore
and not a fix
or maybe feat
? Also a reminder the PR description is TBS.)
hedera-node/hedera-app-spi/src/main/java/com/hedera/node/app/spi/workflows/HandleContext.java
Outdated
Show resolved
Hide resolved
...a/com/hedera/node/app/service/token/impl/handlers/transfer/AssociateTokenRecipientsStep.java
Outdated
Show resolved
Hide resolved
...a/com/hedera/node/app/service/token/impl/handlers/transfer/AssociateTokenRecipientsStep.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Michael Tinker <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Signed-off-by: Michael Tinker <[email protected]>
Node: Unit Test Results 1 542 files 1 542 suites 3h 26m 32s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Node Death Reconnect) Results3 tests 3 ✅ 5m 38s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Restart) Results3 tests 3 ✅ 5m 54s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Token) Results 22 files 22 suites 6m 34s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Crypto) Results 24 files 24 suites 14m 39s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Misc) Results 51 files 51 suites 20m 38s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Time Consuming) Results19 tests 19 ✅ 22m 49s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Node: HAPI Test (Smart Contract) Results 73 files 73 suites 23m 56s ⏱️ Results for commit 66d8919. ♻️ This comment has been updated with latest results. |
Signed-off-by: Michael Tinker <[email protected]>
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 but this is a comment not an approval because I want to come back to it.
// We only charge auto-association fees inline if this is a user disaptch; in that case the | ||
// contract service will take the auto-association costs from the remaining EVM gas | ||
if (context.recordBuilders() | ||
.getOrCreate(SingleTransactionRecordBuilder.class) |
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.
(Gotta say, isn't obvious at this line how a method called getOrCreate
works given an interface as the target class - had to trace this one down ...)
@@ -146,7 +152,7 @@ void doesTokenBalanceChangesWithAllowances() { | |||
assertThat(receiverAccountBefore.numberPositiveBalances()).isEqualTo(2); | |||
assertThat(senderRelBefore.balance()).isEqualTo(1000L); | |||
// There is an association happening during the transfer for auto creation | |||
assertThat(receiverRelBefore.balance()).isEqualTo(1); | |||
assertThat(receiverRelBefore.balance()).isEqualTo(0); |
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.
Why wasn't this assert needed (or useful) also at L106 above? (Only instance in these tests modified in this PR where it wasn't.)
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.
DOne looking. 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! We should probably target this to develop
The base branch was changed.
Will retarget to |
Description:
CryptoTransferHandler
.ContractService
(in that case the cost comes out of thegas
budget for the EVM transaction).chargeNetworkFee()
inHandleContext
.TokenAssociate
child, adds throttle check based on the number of automatic token associations in the children that are there.@HapiTest
expectations accordingly.