Complete the code to emit an event named Transfer.
emit [1](msg.sender, recipient, amount);The Transfer event is emitted to signal token transfers.
Complete the code to listen for the Approval event in a test.
const filter = contract.filters.[1](owner, spender);The Approval event is used to track allowance changes.
Fix the error in the test assertion for event arguments.
expect(event.args.[1]).to.equal(recipient);The recipient argument holds the address receiving tokens.
Fill both blanks to filter events by sender and minimum amount.
const filter = contract.filters.Transfer([1], null, [2]);
The filter uses senderAddress to specify who sent tokens and minAmount to filter transfers above a value.
Fill all three blanks to assert event emission with correct args.
await expect(tx).to.emit(contract, '[1]').withArgs([2], [3], amount);
The test expects the Transfer event with senderAddress and recipientAddress as first two arguments.
