FluffyLabs / FluffyLabs/typeberry

Refactor AnanasInterpreter: Move initialization logic to constructor

Open
#737 2 comments 0 reactions 0 assignees View on GitHub
good first issue M-execution
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.