Skip to content

Lesson 13: Conversion from ETH to WETH failed #5783

Answered by Nlferu
software-dev2010 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @software-dev2010

As far as I can see here you are calling withdraw function. It wont work for you as you are probably do not have anything to withdraw. To use withdraw function first you need to use deposit function and all of it will be in ETH, no converting included.

In order to buy WETH from this contract first use deposit function and then simply call transfer function fill your wallet address and amount in WEI.

After transaction pass just import this token addres into your metamask wallet "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@software-dev2010
Comment options

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