chore: docs

This commit is contained in:
Artem Gureev
2026-08-24 18:41:48 +00:00
parent 77fc3176c0
commit 53612cebf2
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -843,7 +843,7 @@ pub fn validate_execution(
Ok(())
}
/// Logic of system-wide `Clear` instriction.
/// Logic of system-wide `Clear` instruction.
///
/// Checks authorization, clearing data and assigning a new owner.
pub fn validate_clear(
@@ -129,6 +129,9 @@ impl ValidatedStateDiff {
match instruction {
SystemInstruction::Clear { new_owner } => {
// Only the `account_id` is read from `chained_call.pre_states`; the
// account and its authorization are re-derived below, so a forged
// pre_state grants nothing (cf. the audit-issue 91 note further down).
for pre_state in &chained_call.pre_states {
let account_id = pre_state.account_id;
let pre = AccountWithMetadata::new(