Skip to content

Error on instantiate chaincode #103

@ghost

Description

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')'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions