0xMiden / 0xMiden/protocol

Allow account code to be updated

Abierto
#1,695 4 comentarios 0 reacciones 0 asignados Ver en GitHub
kernels
Lenguaje dominante
Rust
Estrellas
132
Forks
167
Merge medio
1 d 23 h
PR fusionados (30 d)
110

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.