Skip to content

Conversation

ilbertt
Copy link
Member

@ilbertt ilbertt commented Sep 25, 2025

Description

After #4387, some methods already have two parameters (time and canister env) that can be condensed into a "system context". Using a system context simplifies the tests as well.

This PR introduces the system_context module and refactors the state methods to accept is as the last argument.

Blocked by #4387.

How Has This Been Tested?

Same (refactored) tests should still pass.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@ilbertt ilbertt marked this pull request as ready for review September 26, 2025 14:32
@ilbertt ilbertt requested a review from a team as a code owner September 26, 2025 14:32
Base automatically changed from luca/cookie-env-vars to master September 26, 2025 14:34
@ilbertt ilbertt requested a review from sesi200 September 26, 2025 14:56
@ilbertt ilbertt merged commit aa8e0e2 into master Sep 26, 2025
132 checks passed
@ilbertt ilbertt deleted the luca/system-context branch September 26, 2025 15:33
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.

2 participants