Omniscia Dapp Radar Audit

LzApp Static Analysis Findings

LzApp Static Analysis Findings

LAP-01S: Data Location Optimizations

TypeSeverityLocation
Gas OptimizationLzApp.sol:L22

Description:

The linked input arguments are set as memory in external function(s).

Example:

contracts/LZ/LzApp.sol
22function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override {

Recommendation:

We advise them to be set as calldata optimizing their read-access gas cost.

Alleviation:

Both arguments have been properly set as calldata according to our recommendation.