TitlesGraph::_setAcknowledged does not change the edge's acknowledged
Summary
TitlesGraph::_setAcknowledged function does not modify acknowledged edge property in the storage
Vulnerability Detail
TitlesGraph::_setAcknowledged function change the edge's property only inside memory, not storage. So mapping(bytes32 id => Edge edge) public edges; is not updated. Only memory return from function is updated. It means after calling TitlesGraph::_setAcknowledged, no information is updated
Impact
TitlesGraph::_setAcknowledged does not updated the edge
den_sosnovskyi
medium
TitlesGraph::_setAcknowledged
does not change the edge's acknowledgedSummary
TitlesGraph::_setAcknowledged
function does not modifyacknowledged
edge property in the storageVulnerability Detail
TitlesGraph::_setAcknowledged
function change the edge's property only inside memory, not storage. Somapping(bytes32 id => Edge edge) public edges;
is not updated. Only memory return from function is updated. It means after callingTitlesGraph::_setAcknowledged
, no information is updatedImpact
TitlesGraph::_setAcknowledged
does not updated the edgeCode Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/graph/TitlesGraph.sol#L200
Tool used
Manual Review
Recommendation
Duplicate of #212