wearetheledger / fabric-mock-stub

Mock implementation of the fabric-shim stub for testing
https://theledger.be
MIT License
49 stars 28 forks source link

Chaincode calling chaincode #23

Closed 6lick closed 5 years ago

6lick commented 5 years ago

Is it possible to test chaincode that calls chaincode deployed on a different channel using stub.InvokeChaincode(<chaincodename>, <args>, <channel>)? I see there is a mockPeerChaincode() method to init another chaincode. I am using that and receiving the following error in the test: TypeError: this.cc.Init is not a function not sure if it is an issue with my code or mockstub.

Thanks