Upgradable Smart contract #9
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
help wanted
Extra attention is needed
medium difficulty
level of difficulty
question
Further information is requested
Smart contracts in Ethereum are immutable by default. Once you create them there is no way to alter them, effectively acting as an unbreakable contract among participants.
However, for some scenarios, it is desirable to be able to modify them. Think of a traditional contract between two parties: if they both agreed to change it, they would be able to do so. On Ethereum, they may desire to alter a smart contract to fix a bug they found (which might even lead to a hacker stealing their funds!), to add additional features, or simply to change the rules enforced by it.
Here’s what you’d need to do to fix a bug in a contract you cannot upgrade:
To avoid going through this mess, we have built contract upgrades directly into our plugins. This allows us to change the contract code, while preserving the state, balance, and address.
for more information about upgradable smart contract reach out this
openzeppelin-contracts-upgradeable
The text was updated successfully, but these errors were encountered: