[Bug][Contract] Missing storage TTL bumps in RemittanceNFT get_recipient_commitment and min_repayment_amount
Maintainer thường phản hồi trong vòng 5 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- blockchain
Hướng nghiên cứu
Đọc contracts/remittance_nft/src/lib.rs tại hai hàm được trích dẫn là get_recipient_commitment và min_repayment_amount, rồi so sánh các lần đọc bộ nhớ của chúng với các lần gia hạn TTL trong get_metadata và is_authorized_minter. Thêm các lần gia hạn được chỉ định khi cam kết của người nhận tồn tại và khi đọc số tiền hoàn trả tối thiểu; kiểm tra các bài kiểm thử hợp đồng liên quan để xác nhận cả hai lần đọc đều làm mới TTL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Issue #121
Missing Storage TTL Bumps in RemittanceNFT get_recipient_commitment and min_repayment_amount
- Title:
[Bug][Contract] Missing storage TTL bumps in RemittanceNFT get_recipient_commitment and min_repayment_amount - Labels:
bug, contracts, nft, smart-contract, good first issue - Location:
contracts/remittance_nft/src/lib.rs:928-937, 1465-1471 - Description:
InRemittanceNFT::get_recipient_commitment(lines 928-937),DataKey::RecipientCommitment(user)is read fromenv.storage().persistent()without callingSelf::bump_persistent_ttl(&env, &key)when the entry exists (unlikeget_metadataat lines 900-905 andis_authorized_minterat lines 822-826). Similarly,min_repayment_amount(lines 1465-1471, called byget_min_repayment_amount) readsDataKey::MinRepaymentAmountfromenv.storage().instance()without callingSelf::bump_instance_ttl(env). - Impact:
Frequently queriedRecipientCommitmentrecords can expire from persistent storage despite active reads, andget_min_repayment_amountfails to refresh instance storage TTL. - Suggested Fix:
CallSelf::bump_persistent_ttl(&env, &key)whenget_recipient_commitmentfinds an entry, and callSelf::bump_instance_ttl(env)insidemin_repayment_amount.
- Ngôn ngữ chính
- TypeScript
- Star
- 22
- Fork
- 313
- Merge trung bình
- 5 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 78
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LabsCrypt/remitlend
-
[Bug][Backend] scoreController.getScoreBreakdown uses CROSS JOIN with current_score_cte returning empty breakdown for users without a scores rowCó thể đã có người làm @alagbesadat208-prog đã nhận 4 ngày trước. Đang mởbackend bug database good first issue Stellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
LabsCrypt/remitlend#2021 · 7 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug][Backend] loanController.requestLoan compares human-readable token amount against poolBalance in stroops (10^7 unit mismatch)Có thể đã có người làm @alagbesadat208-prog đã nhận 4 ngày trước. Đang mởbackend bug good first issue Stellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
LabsCrypt/remitlend#2019 · 7 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug][Frontend] LoanDetailsPageClient does not refetch loan or events after refinance/extension and omits locale on linksCó thể đã có người làm @sksneh đã nhận 2 ngày trước. Đang mởbug frontend good first issue Stellar Wave ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
LabsCrypt/remitlend#2009 · 9 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug][Frontend] Mobile BottomNav links to non-existent /profile route (404) and hardcodes English labelsCó thể đã có người làm @sksneh đã nhận 2 ngày trước. Đang mởbug frontend good first issue Stellar Wave ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
LabsCrypt/remitlend#2007 · 10 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug][Contract] Inconsistent default fallbacks in LoanManager get_min_term_ledgers and get_max_term_ledgersCó thể đã có người làm @goodness-cpu đã nhận 2 ngày trước. Đang mởbug contracts good first issue smart-contract Stellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
LabsCrypt/remitlend#2003 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của LabsCrypt/remitlend
Issue tương tự
-
area:desktop bug documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
anthropics/claude-code#104801 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: Halloween Non Stop SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
spudly/design-system#110 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefixCó thể đã có người làm @ItsDeadlyProgrammer đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
appsmithorg/appsmith#42471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày