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

🔧 Allow empty AccountsSnapshots #209

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

lukacan
Copy link
Collaborator

@lukacan lukacan commented Oct 13, 2024

Description

This PR introduces minor updates to allow derivation of AccountsSnapshots for empty Account Context. Currently, it was not possible to derive AccountsSnapshots for empty context as the unused lifetime error was triggered. This PR updates the source code generated by the AccountsSnapshots. In case no fields are present in the Account Context, the lifetime is preserved, however, the std::marker::PhantomData is used, which ensures consistency as the lifetime will be still present also for the empty implementation.

Related Tickets & Documents

  • Related Issue #

  • Closes #

  • I clicked on "Allow edits from maintainers"

@lukacan lukacan merged commit 85a033a into impr/improve-init-ux Oct 13, 2024
8 checks passed
@lukacan lukacan deleted the impr/allow-empty-accounts-snapshots branch October 13, 2024 11:08
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.

1 participant