Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-07-axelar/blob/9c4c44b94cddbd48b9baae30051a4e13cbe39539/contracts/AxelarGateway.sol#L207
The initial value of a uint256 variable is zero by default. Therefore, in order to optimize gas, there is no need for assignment instructions for this purpose.
3 gas saved, because the submission is a single "spot advice" that doesn't save even 10 gas, am closing as invalid / spam.
Please send multiple findings in your reports
https://github.com/code-423n4/2022-07-axelar/blob/9c4c44b94cddbd48b9baae30051a4e13cbe39539/contracts/AxelarGateway.sol#L207
The initial value of a uint256 variable is zero by default. Therefore, in order to optimize gas, there is no need for assignment instructions for this purpose.