-2

So I deployed an application twice. But i just want to make changes to first one. So how to do that? This is my summary:

Summary
    =======
    > Total deployments:   2
    > Final cost:          0.003708932511868584 ETH
Jan Tuđan
  • 233
  • 3
  • 17

1 Answers1

0

EVM bytecode is immutable by design. Once you deploy a contract, you cannot change its implementation.

You can change the source code, re-compile it, and then deploy it to a new address. Note that the newly deployed contract does not hold the storage values of the previous one.

Petr Hejda
  • 40,554
  • 8
  • 72
  • 100