Skip to content

Add unit tests for protocol fee recipient update emitting correct event fields #477

Description

@Chucks1093

Summary

The ProtocolFeeRecipientUpdated event must contain both the old and new recipient addresses. A unit test should assert each field individually to confirm the event is emitted correctly after a successful update.

Scope

  • Record the current protocol fee recipient as the old address
  • Call update_protocol_fee_recipient with a new address
  • Capture the emitted event and assert old_recipient matches the previous address
  • Assert new_recipient matches the address passed to the update call

Acceptance Criteria

  • old_recipient field matches address before the update
  • new_recipient field matches the address passed in
  • Event is emitted exactly once per update call

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions