Replies: 3 comments 18 replies
-
On Polygon you cannot mint WETH, you directly have WETH as an ERC20 token. You can definitely use WETH, just use the WETH contract address on the polygon chain. Does this help? |
Beta Was this translation helpful? Give feedback.
17 replies
-
Going through this, I think I found the solution to this question: https://ethereum.stackexchange.com/questions/57286/make-function-payable-for-a-specific-erc20-token |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks, yeah I did end up doing something like that :)
…On Thu, May 12, 2022 at 8:54 AM BrwGamer ***@***.***> wrote:
Thanks, did you try it? Does it works?
—
Reply to this email directly, view it on GitHub
<#2126 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW6PK3JR3ESIOHNC5MF4XR3VJSTK3ANCNFSM5FHK7MDQ>
.
You are receiving this because you commented.Message ID: <ethers-io/ethers
.***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have developed a mint function directly on my website, on mumbai polygon testnet.
My code works and the transaction is paid automatically by default with MATIC (for the cost and fees).
Since opensea uses WETH instead of MATIC on the polygon chain, I want WETH to be used to pay for the transaction.
How to do this with ethers.js?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions