Hello, I have a question concern Remix and Solidity. I want to transfer an ERC20 from my account into a smart contract that I created in Remix. When I deployed the smart contract in Rinkeby testnet and I tried to approve/ transfer the ERC20 I have in my account...Remix give me an error (similar to: Gas estimated failed. Gas estimated errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? The execution failed due to an exception. Reverted). What is the problem? Can I deposit ERC20 with Remix IDE or no?
Feb 20, 2022, 1:22 PM
depends on the code you've written for your contract in remix. It's not clear from your post which tx failed, the approval or the transfer? Are you doing a plain transfer to the contract, or are you calling some kind of deposit function on the contract that then transfers the tokens from your wallet to itself?
Feb 20, 2022, 2:33 PM