0xMiden / 0xMiden/protocol

Allow account code to be updated

Aberta
#1,695 4 comentários 0 reações 0 responsáveis Ver no GitHub
kernels
Linguagem predominante
Rust
Estrelas
132
Forks
167
Merge médio
1d 23h
PRs com merge (30d)
110

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.