Unnecessary cast in Factory.proposeBasketLicense()
#20
Labels
bug
Warden finding
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pants
Vulnerability details
The function
Factory.proposeBasketLicense()
castsmsg.sender
to typeaddress
, although it is already a variable of typeaddress
.Impact
A redundent operation is executing.
Tool Used
Manual code review.
Recommended Mitigation Steps
Remove the cast to
address
.The text was updated successfully, but these errors were encountered: