I've got one Ethereum smart contract which calls functions of the other one. How could I track these calls using web3js or some other tool if it is possible at all? I need it because I want to execute some JavaScript (or other non-solidity language) code after receiving such call and then call other function of first smart contract so the sequence of calls should be following:
- Smart contract N1 calls N2 smart contract function.
- JavaScript (or other non-solidity language) code catches this call and execute some code.
- Smart contract N2 calls back N1 using data from previous step.
Could anybody help with it?