0xMiden / 0xMiden/developer-playground

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

Đang mở Phù hợp với người mới
#5 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
0
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust, typescript
Lĩnh vực
frontend, tooling
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
75/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.