0xMiden / 0xMiden/project-template
chore(skills): remove NoteType::from(felt!(2)) workaround after compiler fix
- 主要言語
- Rust
- スター
- 0
- フォーク
- 10
- 平均マージ
- 8日 16時間
- マージ済み PR(30日)
- 1
説明
## Context
The rust-sdk-pitfalls skill currently documents that P2ID output notes created in contract code must use `NoteType::from(felt!(2))` instead of `NoteType::Private`. This is because `NoteType::Private` doesn't exist in the current compiler SDK, which is a bug in the compiler.
This workaround was added as part of the Miden Day feedback fixes (project-template#28).
## When to action
Once the compiler SDK exposes `NoteType::Private` as a proper enum variant (matching the host-side API), update the pitfalls skill to remove the `NoteType::from(felt!(2))` workaround and replace it with `NoteType::Private`.
Depends on the compiler fix being shipped.
コントリビューションガイド
評価
この issue はまだ評価されていません。