Skip to content

fix(imt, lazy-imt): prevent double init and uninitialized use#62

Open
0x471 wants to merge 1 commit intozk-kit:mainfrom
0x471:fix/imt-init-once
Open

fix(imt, lazy-imt): prevent double init and uninitialized use#62
0x471 wants to merge 1 commit intozk-kit:mainfrom
0x471:fix/imt-init-once

Conversation

@0x471
Copy link
Copy Markdown

@0x471 0x471 commented Jan 24, 2026

Description

This PR adds a bool initialized flag to BinaryIMTData, QuinaryIMTData, and LazyIMTData structs.

Related Issue(s)

Closes #42

Checklist

  • I have read and understand the contributor guidelines and code of conduct.
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run yarn style without getting any errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@0x471 0x471 requested a review from vplasencia as a code owner January 24, 2026 16:23
@0x471 0x471 force-pushed the fix/imt-init-once branch from d5026d7 to 099602b Compare January 24, 2026 17:17
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.

init function in IMT trees can be called multiple times

1 participant