Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 10, 2024
1 parent 5521592 commit 6ef3490
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ contract NFT {
#[internal]
fn _store_point_in_transient_storage(point: Point) {
let slot = point.x;
// We don't perform check for the overwritten value to be non-zero because the slot is implictly siloed to `to`
// (`to_note_slot` is part of the hiding point preimage) and hence `to` can interfere only with his own
// execution.
// We don't perform a check for the overwritten value to be zero because the slot is the x-coordinate
// of the hiding point and hence we could only overwrite the value in the slot with the same value.
context.storage_write(slot, point);
}

Expand Down

0 comments on commit 6ef3490

Please sign in to comment.