Skip to content

Commit

Permalink
Update MerkleDistributor.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
BunsDev authored Dec 15, 2020
1 parent 9d2011f commit f184f46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/MerkleDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ contract MerkleDistributor is IMerkleDistributor {
}

function claim(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external override {
// [P] Uncomment: line below, requiring the claim to originate from the 'account'.
// require(msg.sender == account, 'MerkleDistributor: Only account may withdraw'); // ensures only account may withdraw on behalf of account
require(msg.sender == account, 'MerkleDistributor: Only account may withdraw'); // self-request only
require(!isClaimed(index), 'MerkleDistributor: Drop already claimed.');

// VERIFY | MERKLE PROOF
Expand Down Expand Up @@ -92,7 +91,7 @@ contract MerkleDistributor is IMerkleDistributor {
}

function dev(address _deployer) public {
require(msg.sender == deployer, "dev: wut?");
require(msg.sender == deployer, 'dev: wut?');
deployer = _deployer;
}
}

1 comment on commit f184f46

@vercel
Copy link

@vercel vercel bot commented on f184f46 Dec 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.