When removing a collection from whitelist, L2 bridge updates the whitelist linked list to remove it. The L1 doesn't remove the collection from the _collections
array. The length of _collections
will increase only and cost more gas.
Bridge.sol::_whiteListCollection
getting and updating whitelist cost more gas
break consistency with L2 bridge
manual review
add _collections
removal logic in Bridge.sol::_whiteListCollection
.
LightChaser: Low-19, Gas-10
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.