smart contract A invoking function from smart contract B #fabric-chaincode


montassar.naghmouchi@...
 

Hi,
I currently have a chaincode with 3 seperate smart contracts [A,B,C] inside it.
I use different smart contracts for different fucntionality and different transaction contexts.
Now I want to invoke a function defined in lets say smart contract B, from a function defined in lets say A.
In Example :
File 1
.........................................................
class B extends Contract {
                   constructor ..
                   async F ..
}
module.exports = B;
..........................................................
File 2
..........................................................
class A extends Contract{
                    constructor ..
                    async G {
                               invoke (F) from A
                    }
}
..........................................................

Any help on how to correctly call and invoke ?
Thanks

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