Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass argumnet to invoke create method from terminal? #152

Open
satyamyesj opened this issue Jan 31, 2020 · 1 comment
Open

How to pass argumnet to invoke create method from terminal? #152

satyamyesj opened this issue Jan 31, 2020 · 1 comment

Comments

@satyamyesj
Copy link

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?

@diestrin
Copy link
Member

You need to pass the args as strings, so if it's a model you'll need '{"id":"1","name":"Test",...}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants