Jerome | Flow (2024-09-10)
I was wondering what treatment the CLI undertakes when handling string arguments, specifically casting of arguments to Cadence types. The docs don't mention anything specifically https://developers.flow.com/tools/flow-cli/transactions/send-transactions#arguments-1
It seems that it does handle the type casting for you, but i wanted to confirm and also understand the limitations of this if there are any @Chase | Flow 4D @Tom | Flow 4D thanks
5 Replies
I've created a thread for your message. Please continue any relevant discussion in this thread.
You can rename this thread using
/title <new title>
If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadenceUnknown User•3mo ago
Message Not Public
Sign In & Join Server To View
You can specify the type like this iirc:
--arg UFix64:0.01
or --arg Address:0x396aaf12da035b24
otherwise it will try to infer the typeI get unknown flag
arg
when I do that 😦
$ flow scripts execute ./mycript.cdc --arg Address:0xc87f5f0cfd217fcd -n mainnet
unknown flag: --arg
flow version
Version: v2.0.1Yeah it seems like
--arg
is no longer supported, sorry for old info. You can just specify args without a flag