0

This is probably a dumb question, but just to make sure.
I'm building an ERC-721 contract that should only be able to mint one token per address. But afterwards trading shouldn't be restricted.

Using sol's "Mapping" and some basic logic to do so, would that also restrict trading of the ERC-721 afterwards?

Thank you.

1
  • to restrict trading you have to block the change of the ownership. So your token should be assigned to one person and stay like this forever.
    – Nulik
    Aug 17, 2021 at 23:23

1 Answer 1

0

What you are proposing is workable.

Have a bit set for each address. Set it to one when minting. And require it to be zero before minting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.