Complete the code to declare an indexed parameter in an event.
event Transfer(address [1] from, address to, uint256 value);
The keyword indexed marks a parameter as indexed, allowing it to be searched in event logs.
Complete the event declaration to index the 'to' address parameter.
event Transfer(address from, address [1] to, uint256 value);
Marking the 'to' parameter as indexed allows filtering events by recipient address.
Fix the error in the event declaration by correctly indexing the 'owner' parameter.
event Approval(address [1] owner, address spender, uint256 value);The 'owner' parameter must be marked with indexed before its name to be searchable in logs.
Fill both blanks to declare an event with two indexed address parameters.
event Transfer(address [1] from, address [2] to, uint256 value);
Both 'from' and 'to' parameters are marked indexed to allow filtering by sender and recipient.
Fill all three blanks to declare an event with three indexed parameters: two addresses and one uint.
event Approval(address [1] owner, address [2] spender, uint256 [3] value);
All three parameters are marked indexed to allow filtering by owner, spender, and value.