Re: Invoking qscc from client SDK (V2.0) #fabric-sdk-node #qscc


Nicholas Leonardi
 

Hey Tingli,
Are you running fabric 2.x? 
Those functions won't work on 1.4 

Em quarta-feira, 2 de dezembro de 2020 23:49:58 BRT, tingli_huoh@... <tingli_huoh@...> escreveu:


I think system chaincodes can be invoked from either client SDK or peer CLI.
Under the same fabric environment, I am able to invoke qscc from CLI but having an error when invoking from client SDK.
I was using the same method as invoking user chaincode.
The error reports "peer is not running chaincode qscc" at the code line of network.getContract('qscc')

So, I am wondering how can I invoke qscc from client SDK? Thank you!! 

Join fabric@lists.hyperledger.org to automatically receive all group messages.