Skip to content

Commit

Permalink
Report for issue #140 updated by RaymondFam
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Oct 24, 2022
1 parent 74b0a2b commit 7cbfa0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/RaymondFam-G.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Fitting your data in fixed-size 32 byte words is much cheaper than using arbitrary-length types (string in this case). Remember that bytes32 uses less gas because it fits in a single EVM word. Typically, any fixed size variable in solidity is cheaper than dynamically sized ones. Here are some of the instances entailed:

https://github.com/code-423n4/2022-10-holograph/blob/main/src/HolographBridge.sol#L225
https://github.com/code-423n4/2022-10-holograph/blob/main/contracts/enforcer/HolographERC20.sol#L171-L176

Please visit the following link for more details on favoring bytes32 over string:

Expand Down

0 comments on commit 7cbfa0f

Please sign in to comment.