0xMiden / 0xMiden/protocol

Allow account code to be updated

Aperta
#1,695 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
kernels
Lingua principale
Rust
Stelle
132
Fork
167
Merge medio
1g 23h
PR unite (30g)
110

Descrizione

It should be possible to update an account's code if it's type is `AccountType::RegularAccountUpdatableCode`.

We have a rudimentary setup for this in the tx kernel (e.g. `NEW_CODE_ROOT_PTR`) but no APIs for users to set it.

Updating the code to the new commitment is currently done in the epilogue so that the _next_ transaction would start using the new code.

This change would also require including the commitment to the new code in the account delta.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.