Skip to content

[revenue_split] update_recipients() swallows validate_shares() errors instead of returning them #891

Description

@Wilfred007

Description

update_recipients() calls validate_shares(), which can fail, but update_recipients() itself doesn't return a Result. This means a validation failure either panics or is silently ignored depending on how validate_shares actually signals failure internally — neither is acceptable for a function that mutates recipient configuration.

Where

contracts/revenue_split/src/lib.rs (~line 175)

Acceptance Criteria

  • Change update_recipients() to return Result and propagate validation errors
  • Add a test asserting an invalid recipient set is rejected without partially applying the update

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractSmart Contract developmentmediumModerate tasks

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