I am making a project using Ethereum and web3js. In this project , I have contract A and contract B (oracle smart contract). When A calls a function of B, B emits an event.