You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the following error on Remix
transact to Exchange.depositToken errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Note: The constructor should be payable if you send value. Debug the transaction to get more information.
The text was updated successfully, but these errors were encountered:
The Deposit function is working perfectly fine for me. The error is misleading imho.
A typical mistake is to forget to add the tokens to the exchange first, or approve the exchange as the receiver of the tokens. Then an exception is triggered which in turn throws this error message.
Try to debug the message and see where exactly it gets stuck, as the error says.
I see the following error on Remix
transact to Exchange.depositToken errored: VM error: revert.
revert The transaction has been reverted to the initial state.
Note: The constructor should be payable if you send value. Debug the transaction to get more information.
The text was updated successfully, but these errors were encountered: