1

I have implemented improved token at: https://ethereum.org/token#full-coin-code

I use truffle to test and use migrations to deploy contract.

When I want to deploy a new version of MyAdvancedToken, I don't want to lose the values of 'balanceOf' in the token contract.

But when i create a new contract like MyAdvancesToken1 it compiles token and deploy to new address. Is there anyway to deploy a new contract without losing balance database?

1

Not really, you will need some contract logic handling that

This article describes one approach.

  • welcome to the community :) look here for more guide on formatting – Achala Dissanayake Sep 27 '17 at 15:06

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.