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

`tx new liquidity-pool-deposit`/`-withdraw` reject the hex pool ID supported on other commands

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

Chưa có ai nhận issue nà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
75/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, cli

Hướng nghiên cứu

Bắt đầu từ các điểm vào của lệnh liquidity-pool-deposit và liquidity-pool-withdraw, rồi so sánh việc phân tích pool-ID của chúng với revoke-sponsorship, vốn đã chấp nhận các ID hex 64 ký tự. Xác minh rằng cả hai lệnh đều chấp nhận dạng hex do Horizon cung cấp, đồng thời vẫn hỗ trợ dạng strkey L…, sau đó chạy các bài kiểm thử CLI liên quan hoặc các lệnh chỉ build.

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

Mô tả

bug
What version are you using?

stellar-cli 28.1.0 (d0b26d9, built from main).

What did you do?

I took a liquidity pool ID from Horizon and used it to build a deposit and a withdrawal:

curl -s 'https://horizon-testnet.stellar.org/liquidity_pools?limit=1' | jq -r '._embedded.records[0].id'
# 001041ac1d61419a62e0c0152e59f13aff7f8f65c2f04c1371ebbc662b31f4ab

stellar tx new liquidity-pool-deposit --source alice --network testnet --build-only \
  --liquidity-pool-id 001041ac1d61419a62e0c0152e59f13aff7f8f65c2f04c1371ebbc662b31f4ab \
  --max-amount-a 1 --max-amount-b 1 --min-price 1:1 --max-price 1:1

stellar tx new liquidity-pool-withdraw --source alice --network testnet --build-only \
  --liquidity-pool-id 001041ac1d61419a62e0c0152e59f13aff7f8f65c2f04c1371ebbc662b31f4ab \
  --amount 1 --min-amount-a 0 --min-amount-b 0
What did you expect to see?

The pool ID accepted as Horizon gives it. stellar tx new revoke-sponsorship --help lists 64-character hex pool IDs as accepted for its --liquidity-pool-id.

What did you see instead?

Both commands fail:

❌ error: invalid pool ID format: 001041ac1d61419a62e0c0152e59f13aff7f8f65c2f04c1371ebbc662b31f4ab

They only work after converting the ID to its L… strkey form first (stellar strkey encode '{"liquidity_pool":"001041…"}').

Ngôn ngữ chính
Rust
Star
128
Fork
147
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
35

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 stellar/stellar-cli

Tất cả issue của stellar/stellar-cli

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.