On Monday, November 15, 2021, 08:22:28 PM GMT+5:30, montassar.naghmouchi@... <montassar.naghmouchi@...> wrote:
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