Closed adu-web3 closed 3 months ago
The recent updates enhance the configuration and functionality of various Solidity smart contracts. Key changes include new parameters in foundry.toml
for ignoring specific compiler warnings and errors, while several contracts have updated function signatures to clarify their read-only behavior. Additionally, all relevant files now include a standard SPDX license identifier, improving licensing transparency for developers.
Files | Change Summary |
---|---|
foundry.toml |
Added ignored_error_codes to suppress specific error codes and ignored_warnings_from to ignore warnings from specified directories. |
src/core/ClientChainGateway.sol |
Updated getWhitelistedTokensCount to a view function, indicating it does not modify the contract state. |
src/core/ClientGatewayLzReceiver.sol |
Made _getCachedRequestForResponse a view function, clarifying it only reads data without changing state. |
src/libraries/*.sol (BeaconChainProofs, Endian, Errors, Merkle, ValidatorContainer, WithdrawalContainer) |
Added // SPDX-License-Identifier: MIT at the top of each file to specify licensing information, enhancing documentation without affecting functionality. |
🐇 In the code where rabbits play,
New paths and warnings, gone astray.
With licenses clear, like a bright sunny day,
We hop through changes, come what may!
Cheers to the tweaks, let’s celebrate,
In our burrows, we innovate! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
There are some warnings by solc compiler when we run
forge build
, which include unused function params, function mutability, and other warnings from script directory or test directory.we fix these warnings by:
after these changes, now when we run
forge build
:Summary by CodeRabbit
New Features
Documentation
Bug Fixes