Skip to content

Commit

Permalink
Report for issue #201 updated by 0xab00
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Dec 19, 2022
1 parent 6b68c31 commit ca431a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data/0xab00-G.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract AddingIndexedToEvents {
// Sell() optimized 26,127 gas (119 cheaper)
// Wrap() unoptimized 35,164 gas (note: my demo using storage access)
// Wrap() optimized 34,438 gas (726 cheaper - suspect I have a bug when testing this )
// Wrap() optimized 34,438 gas (726 cheaper)
// Unwrap() unoptimized 35,164 gas (note: also using storage access)
// Unwrap() optimized 34,438 gas
Expand All @@ -56,9 +56,8 @@ contract AddingIndexedToEvents {
}
```

Note: no difference to deploy cost.
Note: no difference to deploy cost. Practically it might not make sense for all of those events to use indexed, but the tokenIds in Wrap/Unwrap/Withdraw would be a good candidate.

Caviar.sol does use indexed params.


-------------
Expand Down

0 comments on commit ca431a6

Please sign in to comment.