From d83b5bbca5e4893f79e9c2c38e1da1b1721cf3a8 Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Thu, 3 Oct 2024 11:06:20 +0400 Subject: [PATCH 1/2] SPDX --- src/MerkleAirdrop.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MerkleAirdrop.sol b/src/MerkleAirdrop.sol index 59f4ceb..74123e2 100644 --- a/src/MerkleAirdrop.sol +++ b/src/MerkleAirdrop.sol @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 P2P Validator +// SPDX-License-Identifier: MIT + pragma solidity 0.8.27; import "./@openzeppelin/access/Ownable2Step.sol"; From 0bd266cffa37f4bbd48f1d9f4124edf23692b294 Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Thu, 10 Oct 2024 12:55:19 +0400 Subject: [PATCH 2/2] claimed event --- src/MerkleAirdrop.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MerkleAirdrop.sol b/src/MerkleAirdrop.sol index 74123e2..d09c049 100644 --- a/src/MerkleAirdrop.sol +++ b/src/MerkleAirdrop.sol @@ -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; @@ -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); }