Create an "update code" standard transaction request
- Vorherrschende Sprache
- Rust
- Sterne
- 78
- Forks
- 129
- Ø Merge
- 4 T. 14 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
### 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_
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.