Help calling approve function

hello, is this code linked to a smart contract?
if yes please which of them

Which code? The contract address will be next to contractAddress.

hello, i hope you have gotten the solution, but i have a few questions, how did you spend the approved tokens?, i completely understand how to set the approval function in my code, but how do you spend it?

If you have an allowance (approval to spend tokens), you use the transferFrom function.

Hey guys, why is these no longer working?

Can you explain more? If this is related to your MetaMask issue, please post in that thread only.