Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Frontend] Prevent or warn when sender and recipient Stellar addresses are identical in StreamCreationWizard

Đang mở Phù hợp với người mới
#1,632 0 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 7 ngày

@aazminu đang làm issue này rồi.

Từ ngày 19/10/2026.

  • #1691 của @aazminu — đang mở

Đá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
84/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ệ
next.js, typescript
Lĩnh vực
frontend, payments

Hướng nghiên cứu

Bắt đầu với frontend/src/components/stream-creation/RecipientStep.tsx và frontend/src/lib/stream-validation.ts; theo dõi cách địa chỉ ví đã kết nối và người nhận được xác thực, cũng như cách nút Next bị vô hiệu hóa. Sau đó đọc frontend/src/lib/__tests__/stream-validation.test.ts và bổ sung kiểm thử cho trường hợp bằng nhau sau khi loại bỏ khoảng trắng và không phân biệt chữ hoa chữ thường. Hoàn tất khi địa chỉ khớp hiển thị lỗi nội tuyến được chỉ định, Next bị vô hiệu hóa và kiểm thử đơn vị thành công.

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

Mô tả

drips-wave forms frontend good-first-issue ux

Overview

In frontend/src/components/stream-creation/RecipientStep.tsx, a user can paste their own connected wallet public key as the stream recipient without receiving any warning.

Problem

  • Creating a payment stream to oneself wastes Soroban transaction fees and locks token liquidity unnecessarily.
  • Users testing or copying addresses from their clipboard frequently paste their own connected address by mistake.

Proposed Changes

  1. Compare the normalized recipient input against the currently connected wallet address in RecipientStep.tsx and frontend/src/lib/stream-validation.ts.
  2. Display an inline validation error ("Recipient address cannot be the same as your connected sender wallet") and disable the "Next" button.

Acceptance Criteria

  • Entering the connected wallet's public key triggers an immediate inline error message.
  • Comparison is case-insensitive and trims leading/trailing whitespace.
  • Unit test added in frontend/src/lib/__tests__/stream-validation.test.ts.
Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
82

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

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 LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

Issue tương tự

Thêm issue về TypeScript

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.