defi-wonderland / smock

The Solidity mocking library
MIT License
319 stars 40 forks source link

fix: bug with usage of padNumHexSlotValue #161

Closed 0xOneTony closed 2 years ago

0xOneTony commented 2 years ago

Description In mappings using the function padNumHexSlotValue causes a bug on hashes of bytes32 as a key. We should be using the function padBytesHexSlotValue which is targeted for bytes values.

A different approach from #160 although it fixes the issue I believe that the usage of the padNumHexSlotValue is incorrectly when we deal with bytes type as key