Overview
contract/src/module/ownership_chain/mod.rs (212 lines) presumably builds the transfer history for a document, but has no evident test for a malformed chain — e.g. a transfer record pointing to a previous-owner entry that doesn't exist, or (in a corrupted-data scenario) a cycle — which should be detected rather than causing an infinite loop or silent truncation.
Tasks
Acceptance Criteria
Notes for Contributors
Comment below to be assigned.
Overview
contract/src/module/ownership_chain/mod.rs(212 lines) presumably builds the transfer history for a document, but has no evident test for a malformed chain — e.g. a transfer record pointing to a previous-owner entry that doesn't exist, or (in a corrupted-data scenario) a cycle — which should be detected rather than causing an infinite loop or silent truncation.Tasks
Acceptance Criteria
Notes for Contributors
Comment below to be assigned.