How to use typescript sdk to scan the log corresponding to the contract on the chain

The solution to this issue was resolved here