issues
search
code-423n4
/
2022-06-putty-findings
5
stars
0
forks
source link
QA Report
#281
Open
code423n4
opened
2 years ago
code423n4
commented
2 years ago
[2022-06-putty] QA report
tags:
c4
,
2022-06-putty
,
QA
no need to use statement
return
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L518
use
external
instead of
public
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L466
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L389
remove
payable
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L228
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L240
no need to check token.code.length > 0
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L598
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L293
[2022-06-putty] QA report
tags:
c4
,2022-06-putty
,QA
no need to use statement
return
use
external
instead ofpublic
remove
payable
no need to check token.code.length > 0