Metamask rpc error: execution reverted

Please with my code I still got the error, please can you help me on how to add the gas manually?

Which specific error are you getting now? It’s still not clear. You already are setting gas manually in your gas function.

I see you made another thread, you can keep it to that one.