2 ms·
> how is new code deployed on a smart contract? Unless there's a provision to allow for that, it isn't possible. If there is such a provision it would likely
by EdHominem 10y ago
> how is new code deployed on a smart contract?
Unless there's a provision to allow for that, it isn't possible.
If there is such a provision it would likely be for the old contract to forward funds to a new contract and simply "step aside". Everyone would use the new contract but refer to it with the same name.
It seems easy to screw up. To end up breaking the new contract too, or have funds still pile up at the old one that it was no-longer capable of forwarding, etc. Even if there is a provision it may not actually be useful.
> If this is even possible, what prevents the holders [...]
Well, nothing. (Do you have their home addresses?)
That's why there often isn't a provision for it, it's a catch-all such as "or any terms that may be added at a later date."
You wouldn't sign that contract, would you?