mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 03:11:21 +00:00
chore: docs
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user