1

If you have a copy of the mapping of the owners/allowance of the tokens you'd like to fork.

I couldn't find any contracts that seemed to be able to this.

1 Answer 1

1
  1. Reconsider doing this, as you pay 20000 gas per 32 bytes of written storage.
  2. Deploy a new token contract.
  3. deliver the token amounts to their corresponding addresses through a corresponding contract function.
3
  • Could you be a bit more clear? It's hard to understand the point you are trying to make, is all what you're saying that you would advice against the entire forking of an ERC20 token because of the price?
    – jasper
    Commented Jul 16, 2018 at 12:48
  • Nikita is basically saying, create a function so people can manually claim their token based off the contract you want to fork.
    – ReyHaynes
    Commented Jul 16, 2018 at 13:04
  • 1
    No I'm not only not saying this, I would explicitly disencourage doing so, because then tokenholders could transfer their old tokens to a new address, and claim them in the new contract a second time. Also, the term forking does not apply here, en.wikipedia.org/wiki/Fork_(blockchain) What I meant to say is there is no other way than recreating the users' balances in a new contract, unless the original would have some mechanisms in its code to allow to do it differently, which is not the case by default.
    – n1cK
    Commented Jul 16, 2018 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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