Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Last contract Interaction will be overwritten

Vulnerability Details

If contractInteractions is called twice with same _target, first interaction will be overwritten.

Impact

Owner can't access information about the first interaction through interactions mapping.

Tools Used

Manual Review

Recommendations

To store all the interaction we can make the bytes value to byte array

--- mapping(address protocol => bytes) interactions;
+++ mapping(address protocol => bytes[]) interactions;
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.