Skip to content

Commit

Permalink
puzzle 8 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
daltyboy11 committed May 14, 2022
1 parent ada60ec commit ed8b3e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ contract Puzzle5 {
```
We'll also need to send at least 2 wei to the puzzle contract.
6. We must choose a call data size such that after the memory expansion we have MSIZE - CALLDATASIZE = 3. Since memory expands in 32 byte chunks we can choose any CALLDATASIZE x where x > 32 (to meet the first constraint) and x % 32 == 29. The smallest choice is x = 61.
7. You have to pass in a call value of 17 to cause a wraparound in the addition.
7. You have to pass in a call value of 17 to cause a wraparound in the addition.
8. This puzzle simulates a for loop that executes CALLVALUE number of times. After the loop it checks the amount of gas consumed. To match
the gas consumed with the expected value you must set CALLVALUE = 4

0 comments on commit ed8b3e0

Please sign in to comment.