code-423n4 / 2022-07-axelar-findings

0 stars 0 forks source link

Gas Optimizations #227

Closed code423n4 closed 2 years ago

code423n4 commented 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.

GalloDaSballo commented 2 years ago

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