F
Flow•3mo ago
jerome | flow

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
Needle
Needle•3mo ago
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-cadence
Unknown User
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
navid
navid•3mo ago
You can specify the type like this iirc: --arg UFix64:0.01 or --arg Address:0x396aaf12da035b24 otherwise it will try to infer the type
Vishal | Flow
Vishal | Flow•2mo ago
I 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.1
navid
navid•2mo ago
Yeah it seems like --arg is no longer supported, sorry for old info. You can just specify args without a flag
Want results from more Discord servers?
Add your server