Skip to content

[CT-74] event.rs audit module has no test for event persistence failure #1198

Description

@mftee

Overview

contract/src/event.rs (98 lines) was wired into the crate as a real audit module in CT-39, but there's no evident test for what happens when persisting an audit event itself fails (e.g. the event store is unreachable) — should the triggering operation (submit/revoke/transfer) still succeed, or roll back?

Tasks

  • Decide and document the intended behavior when audit-event persistence fails
  • Add a test simulating an event-store failure and asserting the chosen behavior (operation still succeeds and logs the audit failure, vs. operation fails)

Acceptance Criteria

  • A simulated audit-event persistence failure has explicit, tested, documented behavior

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions