Handle Multiple Assets in Claim Note Flow
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Currently, when searching for potential claimable notes in the wallet, we only take the first asset that a note contains. In Miden, there is a chance that a note could contain multiple assets, and we should handle this both at the UI level, displaying properly to a user what assets a note contains, as well as in the claim functionality to claim all of the assets, not just the first one.
https://github.com/demox-labs/miden-wallet/blob/ea1344a1f4315b089befa7755fb85f28de2adc18/src/lib/miden/front/claimable-notes.ts#L40
Hướng dẫn đóng góp
Hướng nghiên cứu
The issue points to a specific file: src/lib/miden/front/claimable-notes.ts at line 40. Start by examining how notes are currently fetched and displayed, focusing on the data structure for assets. You'll need to update the UI to list multiple assets and modify the claim function to process all assets in a note. Check for related components and API calls to understand the full flow. 'Done' means a note with multiple assets is correctly displayed and all its assets can be claimed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design, frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100