hurley
hurley copied to clipboard
How to pass argumnet to invoke create method from terminal?
I am bootsraping project with convector-cli and creating network topolgy with hurley using follwing commands.
conv new car -c car cd car npm i npm run env:restart npm run cc:start --car
After successfully installing chaincode. I want to test it by submitting create query. What I got from documenatation is that I have to enter floowing command
hurl invoke car car_create [args]
Now create require Car as argument which of type ConvectorModel having id, name, created, modified fields, how do I pass it?
You need to pass the args as strings, so if it's a model you'll need '{"id":"1","name":"Test",...}'