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

Expose parent machine information in substate creation #230

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

sorpaas
Copy link
Member

@sorpaas sorpaas commented Nov 23, 2023

With the new generics we can actually easily support use cases like #175. One would create a wrap structure over RuntimeState. The parent machine (together with the parent state, and the gasometer) is accessible in MergeableRuntimeState::substate. One can then pass information like parent used gas over into the custom wrapping struct.

@sorpaas sorpaas merged commit d58d203 into next Nov 23, 2023
3 checks passed
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