Skip to content

Commit

Permalink
Edited 09smart-contracts-security.asciidoc with Atlas code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nadamsoreilly committed Oct 11, 2018
1 parent 75e0dba commit 436760c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 09smart-contracts-security.asciidoc
Expand Up @@ -2303,8 +2303,8 @@ them as local variables. Therefore, pass:[<span class="keep-together"><code>newR
not initialized. Because it defaults to storage, it is mapped to
storage +slot[0]+, which currently contains a pointer to `unlocked`.
Notice that on lines 19 and 20 we
then set `newRecord.name` to `_name` and `newRecord.mappedAddress` to pass:[<span class="keep-together"><code>_mappedAddress</code></span>]; this updates the storage locations of slots 0
and 1, which modifies both `unlocked` and the storage slot
then set `newRecord.name` to `_name` and `newRecord.mappedAddress` to pass:[<span class="keep-together"><code>_mappedAddress</code></span>]; this updates the storage locations of +slot[0]+
and +slot[1]+, which modifies both `unlocked` and the storage slot
associated with `registeredNameRecord`.

This means that `unlocked` can be directly modified, simply by the
Expand Down

0 comments on commit 436760c

Please sign in to comment.