# Mint erc721 but paying with erc20 token

**URL:** <https://forum.openzeppelin.com/t/mint-erc721-but-paying-with-erc20-token/23297>\
**Category:** Developer Wanted\
**Tags:** erc20, erc721\
**Created:** [January 24, 2022, 8:58am UTC](https://forum.openzeppelin.com/t/mint-erc721-but-paying-with-erc20-token/23297 "2022-01-24T08:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NakamuraTokio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/nakamuratokio/32/12605_2.png) [@NakamuraTokio](https://forum.openzeppelin.com/u/NakamuraTokio)\
**Post date:** [January 24, 2022, 8:58am UTC](https://forum.openzeppelin.com/t/mint-erc721-but-paying-with-erc20-token/23297/1 "2022-01-24T08:58:33Z")

</div>

Dear

I have my own ERC20 token publish already  
I try to use my own ERC20 token for payment NFTMarket place (ERC721) instead of ETH

i use the contract from this repo folk from scaffold-eth  
[https://raw.githubusercontent.com/zh/scaffold-eth/minting/packages/hardhat/contracts/AwesomeAssets.sol](https://raw.githubusercontent.com/zh/scaffold-eth/minting/packages/hardhat/contracts/AwesomeAssets.sol)

how i can edit this file to accept payment only from my token

i googling and found i must add the \_acceptedToken into contractor of contract file , but i dont konw how to apply to above repo

pls help

---

<div class="post-metadata">

**Author:** ![comeonline](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/comeonline/32/7800_2.png) [@comeonline](https://forum.openzeppelin.com/u/comeonline)\
**Post date:** [January 24, 2022, 10:01am UTC](https://forum.openzeppelin.com/t/mint-erc721-but-paying-with-erc20-token/23297/2 "2022-01-24T10:01:35Z")

</div>

HI

I am interested to work on this task. to discuss further, please connect on telegram @hreela

Thanks.
