Open hats-bug-reporter[bot] opened 6 months ago
Github username: @Jelev123 Twitter username: zhulien_zhelev Submission hash (on-chain): 0xe6a138a77d811e5d65a4bc583c3b7c52d4c8ad6a569f7a35ea052708b6842106 Severity: medium
Description: Description\ in setTapToken the check for zero address is wrong
function setTapToken(address payable _tapToken) external onlyOwner { if (address(tapToken) != address(0)) revert NotValid(); tapToken = TapToken(_tapToken); }
It must be:
function setTapToken(address payable _tapToken) external onlyOwner { if (address(tapToken) == address(0)) revert NotValid(); tapToken = TapToken(_tapToken); }
The check is correct. We are looking to setTapToken only if it wasn't set before.
setTapToken
Github username: @Jelev123 Twitter username: zhulien_zhelev Submission hash (on-chain): 0xe6a138a77d811e5d65a4bc583c3b7c52d4c8ad6a569f7a35ea052708b6842106 Severity: medium
Description: Description\ in setTapToken the check for zero address is wrong
It must be: