Skip to content

test(profile): earnings — register #30

Description

@0xdevcollins

Part of #25 (contract test-coverage push).

profile

How to test

  • Reuse the crate's tests/common.rs harness; add tests/earnings.rs + a one-line mod earnings; in tests/mod.rs.
  • Template: contracts/profile/src/tests/bootstrap.rs.
  • Run cargo test -p boundless-profile, then cargo test --all before the PR.

Acceptance criteria

  • New tests/earnings.rs covering every function in scope.
  • Happy path + each Error variant + edge cases + auth-rejection (+ idempotency where relevant).
  • cargo test --all passes; PR links this issue.

Metadata

Metadata

Assignees

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