I'm having a problem with Metamask, I'm trying to withdraw some tokens from a locker (deeplock.io) but every time I try to do the operation this message is shown below the gas fee row: "transaction error exception thrown in contract code".
Have you tried to increase your gas limit in your transaction. This may help you but it doesn't mean this way will always work. There are so many possibilities can happen just like the problem in the code in the smartcontract.
What's really strange is that the token works perfectly and this message keeps popping out even when I'm not dealing with this token (for instance, when I try to call some functions on the bscscan's page of a completely different token, it shows me the exact same message),
That's quite strange. Have you checked the code in your function? Maybe there is something wrong with it.
I'm starting to think that there's something wrong with my Metamask wallet.
This problem will not always relate with metamask. Sometime this can relate with the wrong code or function that already created.
The first thing I thought was that maybe the token could be bad written, as most of the people here said, but I started doubting about Metamask since I started seeing the same error message even in other functions that have absolutely nothing to do with the original token I locked....same gas fee, same error.
P.S: to be sure I put enough money to afford the gas, but didn't work.