by peterth3 · 4y ago · 0 comments
One issue with ETH/smart-contracts that is not addressed in the series is how to ship patches to a smart contract. Let’s say there’s a vulnerability in my contract that accidentally leaks ETH.
How do I ship a patch to fix the contract? Could my buggy contract be taken advantage of indefinitely? Maybe I could move all my ETH to a new wallet and leave the bad contract? How is this problem handled today?
[0] https://youtube.com/playlist?list=PLK9Lwn4_TfLS3I9huJjd-k_Fe...
https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-u...
There is also the concept of a standard upgradeable proxy contract.
https://eips.ethereum.org/EIPS/eip-1822#motivation
This is an area in which someone could build useful tools and libraries to facilitate this need even more.