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

Error on instantiate chaincode #103

Open
ghost opened this issue Mar 5, 2020 · 0 comments
Open

Error on instantiate chaincode #103

ghost opened this issue Mar 5, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 5, 2020

I'm trying to set my golang chaincode to local network of two organizations.
I do:

export CHANNEL=mychannel
export CHAINCODE_HOME=/home/user1/go/src/contract/
export CHAINCODE_INSTALL_ARGS='m 1.0 mycontract golang'
export CHAINCODE_INSTANTIATE_ARGS="mychannel m [\"init\",\"a\",\"10\"] 1.0 collections.json AND('a.member','b.member')"
./network-create-local.sh a b

My chaincode is installed, but script "chaincode-instantiate.sh" give me error:

bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `container-scripts/network/chaincode-instantiate.sh mychannel m '{"Args":["a","10"]}' 1.0 collections.json AND('a.member','b.member')'
@ghost ghost changed the title Error instantiate chaincode Error on instantiate chaincode Mar 5, 2020
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

0 participants