The function call is more expensive adding an extra parameter instead of msg.sender.
There is no specific reason to NOT use msg.sender here as the token bridge is the only one able to call it and is the owner of this contract
Gas
forge test
We should use msg.sender
instead of target
, as it will save gas. Below is the diff:
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.