Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 806 Bytes

Incorrect event signature in libraries.md

File metadata and controls

18 lines (17 loc) · 806 Bytes

Contract types used in events in libraries cause an incorrect event signature hash. Instead of using the type address in the hashed signature, the actual contract name was used, leading to a wrong hash in the logs. This is due to a compiler bug introduced in v0.5.0 and fixed in v0.5.8. (see here)


Slide Screenshot

047.jpg


Slide Text

  • Event Signatures -> Contract Type
  • Contract Parameter -> Address vs. Name
  • Wrong Hash
    • solc Bug: 0.5.0 - 0.5.8
  • Use Address Type

References


Tags