Unnecessary cast in Basket.onlyPublisher()
#21
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 modifier
Basket.onlyPublisher()
castspublisher
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: