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

[BUG] Extra argument passed to transactions in Stable Cadence Pre-release version

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

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

Từ ngày 21/9/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Bug Feedback
Problem

When trying to send a transaction with parameters, I consistently get

❌ Command Error: error parsing transaction arguments: argument count is [n+1], expected [n]
Steps to Reproduce

With the Stable Cadence CLI preview release installed, try the following transaction:

transaction(s: String) {
    prepare(signer: &Account) {
        log(s)
    }
}
flow transactions send ./transactions/test_param.cdc hello

And it should output:

❌ Command Error: error parsing transaction arguments: argument count is 2, expected 1

Confirm it works without the transaction parameter:

transaction {
    prepare(signer: &Account) {
        log("hello")
    }
}
flow transactions send ./transactions/test.cdc

And it should succeed.

Acceptance Criteria

Transactions with and without params should execute.

Context

Using the preview release to update FLIPs and contracts.

Machine Info

OS: macOS 13.6 (22G120)
CLI: v1.5.0-stable-cadence.2

Ngôn ngữ chính
Go
Star
209
Fork
88
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 onflow/flow-cli

Tất cả issue của onflow/flow-cli

Issue tương tự

Thêm issue về Go

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.