Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohann committed Sep 26, 2024
1 parent bc33664 commit 4a481fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UniversalFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ contract UniversalFactory {

// Once the `salt` zero is very common, we XOR it with the slot0 to reduce the likelihood
// of storing a zero value, otherwise using the salt zero ended up using more gas than
// using using a non-zero salt, which is inconvenient but not an issue at all.
// using a non-zero salt, which is inconvenient but not an issue at all.
// Notice the previous salt is always restored at the end of the execution. So this value
// cannot influence any subsequent contract creation gas cost.
mstore(0x01c0, xor(sload(2), slot0))
Expand Down Expand Up @@ -861,7 +861,7 @@ contract UniversalFactory {

// Once the `salt` zero is very common, we XOR it with the slot0 to reduce the likelihood
// of storing a zero value, otherwise using the salt zero ended up using more gas than
// using using a non-zero salt, which is inconvenient but not an issue at all.
// using a non-zero salt, which is inconvenient but not an issue at all.
// Notice the previous salt is always restored at the end of the execution. So this value
// cannot influence any subsequent contract creation gas cost.
sstore(2, xor(salt, slot0))
Expand Down

0 comments on commit 4a481fc

Please sign in to comment.