This bounty is no longer available
Web3 DAO | Ethereum Foundation Logo

Reject inedexed zero sized type

Organization

Ethereum Foundation

Deadline

N/A

Status

ENDED


INSTRUCTIONS

What is wrong?

Currently, it is allowed to mark a zero-sized type field as an indexed field, but this doesn't make sense because a zero-sized type will never be encoded.

e.g.

event MyEvent:
    idx x: ()

should be rejected.