Skip to content

Add unit tests for update_creator_fee_recipient rejected when called by non-current recipient #501

Description

@Chucks1093

Summary

Only the current fee recipient for a creator can rotate it to a new address. A call from any other wallet — including the creator's registered wallet — must be rejected with Unauthorized. This access control case needs explicit unit test coverage.

Scope

  • Register a creator with a specific fee recipient address
  • Attempt to call update_creator_fee_recipient from the creator's own wallet (not the fee recipient) and assert it reverts with Unauthorized
  • Attempt from a random third wallet and assert it also reverts
  • Call from the actual current fee recipient and assert it succeeds

Acceptance Criteria

  • Call from creator wallet (not fee recipient) reverts with Unauthorized
  • Call from random third wallet reverts with Unauthorized
  • Call from current fee recipient succeeds and updates the address

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