0xMiden / 0xMiden/rust-sdk

Create an "update code" standard transaction request

Aperta
#621 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
78
Fork
129
Merge medio
4g 14h
PR unite (30g)
52

Descrizione

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

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.