-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ready for Audit] Create MerkleTreeAirdropForERC20 module #16
base: main
Are you sure you want to change the base?
[Ready for Audit] Create MerkleTreeAirdropForERC20 module #16
Conversation
@deep-quality-dev |
MerkleTreeAirdrop/.env.example
Outdated
@@ -0,0 +1,7 @@ | |||
GOERLI_INFURA_API_KEY= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove file
address public token; | ||
|
||
constructor(address token_, bytes32 merkleRoot_) { | ||
token = token_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Low Severity (Information): Zero Address Check
MerkleTreeAirdrop.constructor(address,bytes32).token_ lacks a zero-check on :
- token = token_
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#missing-zero-address-validation
Recommendation: if (token_ == address(0)) { /* DO SOMETHING */ }
After you fix those three, you can change this PR title to [Ready for Audit] Create MerkleTreeAirdropForERC20 module. |
MerkleTreeAirdrop/scripts/deploy.ts
Outdated
@@ -0,0 +1,46 @@ | |||
import { ethers, run } from "hardhat"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove entire scripts folder
No description provided.