spydra-tech / fabric-debugger

Extension for Visual Studio Code that makes it easy for developers to build and debug Chaincode right from within the IDE.
Apache License 2.0
14 stars 3 forks source link

[FEATURE] Support multi-smart-contract chaincodes #31

Open ghareeb-falazi opened 1 year ago

ghareeb-falazi commented 1 year ago

Allow debugging chaincodes that contain more than one smart contract. Specifically, allow determining which smart contract to invoke in the .fabric file (not only the method and the arguments).

ashwath-spdr commented 1 year ago

Thanks @ghareeb-falazi for the feedback. Will add this to the backlog for next release to add another parameter in the .fabric file where the Smart Contract name can be specified. Meanwhile, in the current version also, if you prepend the method name with "smartcontractname:", it should work.

For e.g. in the sample https://github.com/hyperledger/fabric-samples/blob/main/asset-transfer-ledger-queries/chaincode-go/asset_transfer_ledger_chaincode.go, using the function name as "SimpleChaincode:ReadAsset" should work.