0

imagine that I've a contract with 200 token already minted, now I see a mistake in the contract or I want to add a new functionality, how could I move all those tokens to a new contract?

Thank you

1
  • Any help please?
    – Cryptodev
    Oct 21, 2021 at 17:39

1 Answer 1

0

It depends on the contract.

If the contract is upgradable then it is just updating the contract.

If it is not upgradable, you can implement in the new contract a way to migrate from the old one. Another option is to make the migration in batches.

2
  • In batches means to create all tokens again in the new contract and transfer them to their "old" owners?
    – Cryptodev
    Oct 22, 2021 at 7:14
  • @Cryptodev Yes, doing an airdrop to the owners. Probably you want to stop the old token and take and snapshot before doing that.
    – Ismael
    Oct 22, 2021 at 15:12

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.