Content
@
0 reply
0 recast
0 reaction
Butalik Viterin
@cypherpunk1
WHAT IS A SMART CONTRACT UPGRADE? A smart contract upgrade involves changing the business logic of a smart contract while preserving the contract's state. It is important to clarify that upgradeability and mutability are not the same, especially in the context of smart contracts. You still cannot change a program deployed to an address on the Ethereum network. But you can change the code that's executed when users interact with a smart contract. This can be done via the following methods: Creating multiple versions of a smart contract and migrating state (i.e., data) from the old contract to a new instance of the contract. Creating separate contracts to store business logic and state. Using proxy patterns to delegate function calls from an immutable proxy contract to a modifiable logic contract. Creating an immutable main contract that interfaces with and relies on flexible satellite contracts to execute specific functions.
0 reply
0 recast
1 reaction