Hello, I’m a new developer learning flow particularly interested in making a 3rd party application for nba top shot. I’ve been following the readme from the nba top shot smart contract repo and so far I’ve been able to run the scripts which require no params fine. However for scripts that require a parameter such as
pub fun main(playID: UInt32): {String:String} {
let metadata = TopShot.getPlayMetaData(playID: playID) ?? panic("Play doesn't exist")
log(metadata)
return metadata
}
what is the correct way to pass this param if we are using the flow CLI? I’m currently calling the script from the cli as such flow scripts execute transactions/scripts/plays/get_play_metadata.cdc --host access.mainnet.nodes.onflow.org:9000
If I overlooked something please let me know, thank you!