[Regression on closed #314] milestones::recover_admin's only test still runs under mock_all_auths()

Đang mở
#562 9 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@urielit1313-creator đang làm issue này rồi.

Từ ngày 13/10/2026.

  • #576 của @urielit1313-creator — đang mở
  • #759 của @Chidi-Dev1 — đã đóng, không merge

Đá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
30/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
blockchain, testing-qa

Hướng nghiên cứu

Read contracts/milestones/src/test.rs and inspect the existing recover_admin test and how targeted mock_auths are used. Add checks for both signers, recovery signer only, and new admin only; done means the joint signature succeeds and either single signer fails. A linked pull request is already open, so check its status before starting.

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

Mô tả

security Stellar Wave testing

Problem

#314 is closed, but contracts/milestones/src/test.rs contains no targeted mock_auths at all, and recover_admin is called once, under mock_all_auths(). Nothing proves that both the recovery address and the new admin must sign, which is the whole point of the recovery design.

Suggested fix

Add targeted-auth tests: both signers → OK, recovery only → fail, new admin only → fail.

Related: #314

Ngôn ngữ chính
Rust
Star
1
Fork
102
Merge trung bình
4 giờ 12 phút
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MergeFi/contracts

Tất cả issue của MergeFi/contracts

Issue tương tự

Thêm issue về Rust

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.