Skip to content

Commit

Permalink
feat: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Dec 8, 2023
1 parent bb67f4b commit 59c5552
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solidity/contracts/Oracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ contract Oracle is IOracle {
let i := 0
let shiftBy := sub(256, mul(_chunkSize, 8))

// Iterate 32-bytes chunks of the list
// Iterate N-bytes chunks of the list
for {} lt(i, length) { i := add(i, _chunkSize) } {
// Load the address at index i
// Load the value at index i
let _chunk := mload(add(add(_list, 0x20), i))

// Shift the address to the right by 96 bits and compare with _sought
// Shift the value to the right and compare with _sought
if eq(shr(shiftBy, _chunk), _sought) {
// Set _found to true and return
_found := 1
_found := true
break
}
}
Expand Down

0 comments on commit 59c5552

Please sign in to comment.