Skip to content

Commit

Permalink
claimed event
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbir committed Oct 10, 2024
1 parent d83b5bb commit 0bd266c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MerkleAirdrop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ contract MerkleAirdrop is Ownable2Step {

event MerkleAirdrop__MerkleRootSet(bytes32 _merkleRoot);
event MerkleAirdrop__EtherRecovered(address _recipient, uint256 _amount);
event MerkleAirdrop__Claimed(address indexed _recipient, uint256 _amount);

constructor(bytes32 _merkleRoot) payable {
merkleRoot = _merkleRoot;
Expand All @@ -41,6 +42,7 @@ contract MerkleAirdrop is Ownable2Step {

// Mark address as claimed and transfer the ETH
claimed[msg.sender] = true;
emit MerkleAirdrop__Claimed(msg.sender, _amount);
Address.sendValue(payable(msg.sender), _amount);
}

Expand Down

0 comments on commit 0bd266c

Please sign in to comment.