Skip to content

Commit da1712c

Browse files
committed
Modified Claimed event in DropperFacet
It now also reports the signer (and this is indexed).
1 parent 897515e commit da1712c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

abi/Dropper/v0.2.0/DropperFacet.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"name": "claimant",
1515
"type": "address"
1616
},
17+
{
18+
"indexed": true,
19+
"internalType": "address",
20+
"name": "signer",
21+
"type": "address"
22+
},
1723
{
1824
"indexed": false,
1925
"internalType": "uint256",

contracts/Dropper/DropperFacet.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ contract DropperFacet is
3636
event Claimed(
3737
uint256 indexed dropId,
3838
address indexed claimant,
39+
address indexed signer,
3940
uint256 requestID,
4041
uint256 amount
4142
);
@@ -337,7 +338,7 @@ contract DropperFacet is
337338

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

340-
emit Claimed(dropId, msg.sender, requestID, amount);
341+
emit Claimed(dropId, msg.sender, signer, requestID, amount);
341342
}
342343

343344
function claimStatus(

contracts/interfaces/IDropper.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ interface IDropper {
2020
event Claimed(
2121
uint256 dropId,
2222
address claimant,
23+
address signer,
2324
uint256 requestID,
2425
uint256 amount
2526
);

0 commit comments

Comments
 (0)