Skip to content

Lesson: 13 : Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed' #2447

Answered by sparrow313
sparrow313 asked this question in Q&A
Discussion options

You must be logged in to vote

I got the solution. I hardCoded the ERC20 address inside the approveERC20 function instead of passing it as a parameter

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@sparrow313
Comment options

@alymurtazamemon
Comment options

@alymurtazamemon
Comment options

@sparrow313
Comment options

@sparrow313
Comment options

Comment options

You must be logged in to vote
7 replies
@alymurtazamemon
Comment options

@othaime-en
Comment options

@sparrow313
Comment options

@sparrow313
Comment options

@sparrow313
Comment options

Comment options

You must be logged in to vote
1 reply
@alymurtazamemon
Comment options

Answer selected by sparrow313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants