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

Validate and fix fuzzy records in HollowAccountFinalizationSuite #9904

Merged
merged 132 commits into from
Nov 17, 2023

Conversation

Neeharika-Sompalli
Copy link
Member

@Neeharika-Sompalli Neeharika-Sompalli commented Nov 15, 2023

Fixes #9696

Description

  • Adds CallOutcome#recipientId to match mono-service logic for setting the called ContractID in the receipt of even a ContractCall or EthereumTransaction.
  • Adds HandleException#shouldRollbackStack to let contract operations suppress the HandleWorkflow rollback their gas charges. (Note: Once we rationalize contract fee charging this can be removed.)
  • Updates CryptoUpdateRecordBuilder.accountId only for hollow account finalizations
  • Skips verifying keys for a hollow payer
  • Adds optionalKeys set to preHandleResult. Changed HandleWorkflow#haveKeyChanges to looks at the preHandleResult.requiredKeys() and preHandleResult.optionalKeys()
  • Adds calculateFees for ContractCreateHandler
  • Ensures royalty fallback fee is charged only once per tokenId

tinker-michaelj and others added 30 commits November 3, 2023 11:46
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>
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>
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: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
… call

Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
… fields

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>
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>
@Neeharika-Sompalli Neeharika-Sompalli marked this pull request as ready for review November 16, 2023 23:53
Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM, ty @Neeharika-Sompalli !

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@iwsimon iwsimon left a comment

Choose a reason for hiding this comment

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

Lots of changes! LGTM.

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM!

@Neeharika-Sompalli Neeharika-Sompalli merged commit 791ab23 into develop Nov 17, 2023
14 of 15 checks passed
@Neeharika-Sompalli Neeharika-Sompalli deleted the 9696-hollow-account-records branch November 17, 2023 20:56
nickpoorman pushed a commit that referenced this pull request Nov 22, 2023
…9904)

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Co-authored-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fuzzy match records with mono-service for HollowAccountFinalizationSuite
5 participants