0xMiden / 0xMiden/developer-playground

Note script examples fail to load from removed 0xPolygonMiden/miden-base raw URLs

オープン 初心者向け
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
0
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

### Summary

The note script example dropdown fetches examples from the old `0xPolygonMiden/miden-base` raw GitHub path. Those URLs now return 404, so selecting a note script example leaves the editor without the requested example content.

### Code path

`src/utils/helper_functions.tsx` currently fetches:

```ts
https://raw.githubusercontent.com/0xPolygonMiden/miden-base/main/miden-lib/asm/note_scripts/${item}
```

The dropdown options in `src/components/DropDown.tsx` are:

```ts
["P2ID.masm", "P2IDR.masm", "SWAP.masm"]
```

### Verification

The old raw URL for `P2ID.masm` returns 404. The current scripts live under the protocol repository, for example:

- `https://raw.githubusercontent.com/0xMiden/protocol/main/crates/miden-standards/asm/standards/notes/p2id.masm`
- `https://raw.githubusercontent.com/0xMiden/protocol/main/crates/miden-standards/asm/standards/notes/p2ide.masm`
- `https://raw.githubusercontent.com/0xMiden/protocol/main/crates/miden-standards/asm/standards/notes/swap.masm`

### Expected behavior

The dropdown should fetch the note script examples from their current `0xMiden/protocol` location, including the current lowercase filenames and the `P2IDR` to `p2ide.masm` rename.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue is in src/utils/helper_functions.tsx where the fetch URL is built. Check the DropDown.tsx component for the list of script names. Update the URL to point to the new base path in the 0xMiden/protocol repository and map the old filenames (P2IDR.masm) to the new lowercase ones (p2ide.masm). Test by selecting an example from the dropdown in the UI and verifying the correct script loads.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust, typescript
領域
frontend, tooling
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
75/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。