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

New CLI flag: --handle-contracts. Minor refactoring. #89

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Aug 12, 2024

  • New CLI flag: --handle-contracts - whether to handle balance-changing operations for smart contracts, as well. By default, feature is disabled.
  • Refactor IsAddressObserved().

@andreibancioiu andreibancioiu self-assigned this Aug 12, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review August 12, 2024 13:13
@@ -57,7 +57,8 @@ func startAdapter(ctx *cli.Context) error {
sleepDuration: ctx.GlobalUint(cliFlagSleep.Name),
}

router := gin.Default()
router := gin.New()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor optimization within system tests.

@andreibancioiu andreibancioiu changed the title New CLI flag: --handle-contracts New CLI flags: --handle-contracts. Minor refactoring. Aug 12, 2024
@andreibancioiu andreibancioiu changed the title New CLI flags: --handle-contracts. Minor refactoring. New CLI flag: --handle-contracts. Minor refactoring. Aug 12, 2024
Comment on lines +319 to +320
noConstraintAboutProjectedShard := !provider.observedProjectedShardIsSet
noConstraintAboutHandlingContracts := provider.shouldHandleContracts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just some "aliases", for more explicit code.

@andreibancioiu andreibancioiu merged commit cf55929 into feat/spica Aug 12, 2024
6 checks passed
@andreibancioiu andreibancioiu deleted the spica-02 branch August 12, 2024 14:24
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.

3 participants