FlowF
Flow3y ago
jordan

jordanschalm (2023-09-05)

After installing
flow-cli
on a new laptop, I'm having some trouble sending transactions with arguments. The CLI interprets all inputs as containing one more argument than I intend. For example:
// minimal-example-1-arg.cdc
transaction(x: UInt64) {
    prepare(signer: AuthAccount) {}
    execute {}
}

% flow transactions send ./minimal-example-1-arg.cdc 1 --network canary --signer canary-service
❌ Command Error: error parsing transaction arguments: argument count is 2, expected 1

Let me know if anyone has any idea what I'm doing wrong, or if this is a bug.
Was this page helpful?