Skip to content

Commit

Permalink
Modified Claimed event in DropperFacet
Browse files Browse the repository at this point in the history
It now also reports the signer (and this is indexed).
  • Loading branch information
zomglings committed Mar 28, 2023
1 parent 897515e commit da1712c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions abi/Dropper/v0.2.0/DropperFacet.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"name": "claimant",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "signer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
Expand Down
3 changes: 2 additions & 1 deletion contracts/Dropper/DropperFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ contract DropperFacet is
event Claimed(
uint256 indexed dropId,
address indexed claimant,
address indexed signer,
uint256 requestID,
uint256 amount
);
Expand Down Expand Up @@ -337,7 +338,7 @@ contract DropperFacet is

ds.DropRequestClaimed[dropId][requestID] = true;

emit Claimed(dropId, msg.sender, requestID, amount);
emit Claimed(dropId, msg.sender, signer, requestID, amount);
}

function claimStatus(
Expand Down
1 change: 1 addition & 0 deletions contracts/interfaces/IDropper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface IDropper {
event Claimed(
uint256 dropId,
address claimant,
address signer,
uint256 requestID,
uint256 amount
);
Expand Down

0 comments on commit da1712c

Please sign in to comment.