Omniscia rain protocol Audit
Trust Static Analysis Findings
Trust Static Analysis Findings
TRU-01S: Data Location Optimization
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | ![]() | Trust.sol:L796 |
Description:
The linked function argument is set as memory in an external function.
Example:
contracts/trust/Trust.sol
796function sendNotice(bytes memory data_) external {Recommendation:
We advise it to be set as calldata optimizing its gas cost and enforcing immutability on the input argument.
Alleviation:
The data location was properly set as calldata optimizing the codebase.
