Lesson: 13 : Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed' #2447
-
[https://github.com/sparrow313/defi-aave/tree/sideBranch](https://github.com/sparrow313/defi-aave/tree/sideBranch)) FACING ISSUE while repaying!! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
@scottt @bharathmuddada @marthendalnunes @lanewhitten @alymurtazamemon HELP !!! |
Beta Was this translation helpful? Give feedback.
-
@sparrow313 Hey! please change the diaTokenAddress and try again |
Beta Was this translation helpful? Give feedback.
-
Hey @sparrow313 I've run your code locally and it works fine. So I'm guessing you need to use the version you've shared with us or whatever version of the code you shared wasn't updated. Please look into it and see if they are similar. If not, you need to update the code in the repo you've shared with us. Notify us when you do. |
Beta Was this translation helpful? Give feedback.
-
I got the solution. I hardCoded the ERC20 address inside the approveERC20 function instead of passing it as a parameter |
Beta Was this translation helpful? Give feedback.
I got the solution. I hardCoded the ERC20 address inside the approveERC20 function instead of passing it as a parameter