0xMiden / 0xMiden/rust-sdk

Create an "update code" standard transaction request

Aberta
#621 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Rust
Estrelas
78
Forks
129
Merge médio
4d 14h
PRs com merge (30d)
52

Descrição

### What should be done?

Right now it's possible to update account code, but we don't provide any "standard" or simple way of doing so.
We could create a `TransactionRequestBuilder::update_account_code(new_account_code: AccountCode)` which can be used to move account code to a new version.

### How should it be done?

We should probably modify the `TransactionScriptBuilder` to have a way of calling `account::set_code` with the new commitment in a way that can be used by the request builder in order to correctly form a transaction.
Validations should be added to check if the account is mutable before executing.

### When is this task done?

When we have a way of simply defining a transaction that updates the account code.

### Additional context

_No response_

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.