0xMiden / 0xMiden/rust-sdk

Create an "update code" standard transaction request

Ouverte
#621 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
78
Forks
129
Merge moyen
4 j 14 h
PR mergées (30 j)
52

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.