Create an "update code" standard transaction request
- 主要語言
- Rust
- 星號
- 78
- 分支
- 129
- 平均合併
- 4 天 14 小時
- 30 天內合併 PR
- 52
描述
### 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_
貢獻指南
評估
這個 Issue 還沒有評估資料。