DSCEngine functions reverting when tried interacting with it on remix.. #219
-
I tried running the Smart contract on Remix IDE.. I deployed it(sepolia). All the getter functions and view functions seems to run well. However when I try calling functions like deposit collateral it always reverts. The transferFrom is the reason the transaction is reverting. If I want to interact with the contract on Remix how can I approve the contract to use my tokens?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can do two things:
Just in case... remember if you deployed the contract with the actual addresses of the |
Beta Was this translation helpful? Give feedback.
You can do two things:
WETH
token contract directly on Sepolia Etherscan to approveDSCEngine
as spender.WETH
contract in a new file in Remix and use theAtAddress
field with the address ofWETH
to load an instance of the contract, then you can interact with it.Just in case... remember if you deployed the contract with the actual addresses of the
WETH
andWBTC
for Sepolia then you need to mint some of those tokens by depositingETH
.