The if-branch of Basket.changePublisher function ensures that pendingPublisher.publisher == newPublisher which means setting publisher = newPublisher is equivalent to publisher = pendingPublisher.publisher but the former saves an expensive storage load operation.
Handle
cmichel
Vulnerability details
The
if
-branch ofBasket.changePublisher
function ensures thatpendingPublisher.publisher == newPublisher
which means settingpublisher = newPublisher
is equivalent topublisher = pendingPublisher.publisher
but the former saves an expensive storage load operation.