FluffyLabs / FluffyLabs/typeberry
Refactor AnanasInterpreter: Move initialization logic to constructor
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Context
As discussed in PR #716, if `AnanasInterpreter` instances are meant to be used once, the initialization logic (currently in `resetJam()`) should be moved to the constructor for better design.
## Original Feedback
> If instances are meant to be used once, it would be best if this was part of the constructor instead.
>
> — @tomusdrw
## File
`packages/core/pvm-interpreter-ananas/index.ts`
## Related Links
- PR: https://github.com/FluffyLabs/typeberry/pull/716
- Comment: https://github.com/FluffyLabs/typeberry/pull/716#discussion_r2448609400
## Requested by
@DrEverr
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.