This report was generated by Aderyn, a static analysis tool built by Cyfrin, a blockchain security company. This report is not a substitute for manual audit or security review. It should not be relied upon for any purpose other than to assist in the identification of potential security vulnerabilities.
Key | Value |
---|---|
.sol Files | 0 |
Total nSLOC | 0 |
Filepath | nSLOC |
---|---|
Total | 0 |
Category | No. of Issues |
---|---|
High | 0 |
Low | 6 |
ERC20 functions may not behave as expected. For example: return values are not always meaningful. It is recommended to use OpenZeppelin's SafeERC20 library.
1 Found Instances
-
Found in src/Wallet.sol Line: 92
payable(msg.sender).transfer(balance);
Check for address(0)
when assigning values to address state variables.
1 Found Instances
-
Found in src/Wallet.sol Line: 120
owner = newOwner;
Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it's not necessarily best to index the maximum allowed per event (three fields). Each event should use three indexed fields if there are three or more fields, and gas usage is not particularly of concern for the events in question. If there are fewer than three fields, all of the fields should be indexed.
2 Found Instances
1 Found Instances
-
Found in src/Wallet.sol Line: 41
modifier NotZeroAddress(address val) {
Contract contains comments with TODOS
1 Found Instances
-
Found in src/Wallet.sol Line: 15
contract Wallet {
it is recommended that the definition be removed when custom error is unused