Open thegostep opened 3 years ago
Not really. Root has the same restriction as any other CREATE2-based upgrade, which is having to deploy the upgraded version in a different tx than the SELFDESTRUCT.
and using a factory to bundle the calls doesn't get around this restriction? I find this surprising
As far as I understand, problem is that SELFDESTRUCT does not destroy the contract - it only marks it for destruction, and the destruction is carried out when the tx finishes. I ran some tests locally and it seems to be the case.
https://github.com/ricmoo/lurch/tree/master/rooted