Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Tokens Not Deducted on NFT Claim #488

Closed
jagzmz opened this issue Aug 24, 2023 · 1 comment
Closed

Custom Tokens Not Deducted on NFT Claim #488

jagzmz opened this issue Aug 24, 2023 · 1 comment

Comments

@jagzmz
Copy link

jagzmz commented Aug 24, 2023

I have deployed the OpenEditionERC721 contract on the Polygon Mumbai network. Here's the contract address.

The contract accepts payments in a custom contract of DERC 20.

image

I only have 2 DERC20 tokens in my wallet address 0x30372164971e8174315e3D0724bFc44fe53EA195.

When I try to purchase an NFT, the transaction completes successfully, but the tokens are not deducted from my wallet. Shouldn't the contract throw an error before the transaction?

@jagzmz jagzmz changed the title Custom tokens are not getting deducted Custom Tokens Not Deducted on NFT Claim Aug 24, 2023
@nachoiacovino
Copy link
Contributor

hey @jagzmz, if you're the primary sale recipient for your contract (which you are), you're basically sending the tokens to yourself, so they're being deducted then added automatically.

If you try claiming from a different wallet you'll see the tokens moving, I hope this clarifies it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants