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)
- Event Signatures -> Contract Type
- Contract Parameter -> Address vs. Name
- Wrong Hash
- solc Bug:
0.5.0
-0.5.8
- solc Bug:
- Use
Address
Type