The function TitlesGraph._setAcknowledged() doesn't function properly due to its reliance on a memory variable
Summary
TitlesGraph._setAcknowledged() doesn't work becuase it rewrites the memory variable edge instead of the storage variable.
Vulnerability Detail
At L205 of TitlesGraph._setAcknowledged(), the variable edge is a memory variable, so rewriting edge doesn't change the storage variable edges[edgeId_].
KupiaSec
high
The function
TitlesGraph._setAcknowledged()
doesn't function properly due to its reliance on a memory variableSummary
TitlesGraph._setAcknowledged()
doesn't work becuase it rewrites the memory variableedge
instead of the storage variable.Vulnerability Detail
At L205 of
TitlesGraph._setAcknowledged()
, the variableedge
is a memory variable, so rewritingedge
doesn't change the storage variableedges[edgeId_]
.Impact
TitlesGraph._setAcknowledged()
never works and results in the incorrect action of the entire system.Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/graph/TitlesGraph.sol#L200-L213
Tool used
Manual Review
Recommendation
TitlesGraph._setAcknowledged()
should be fixed as follows.Duplicate of #212