Skip to content

Commit

Permalink
feat: remove already claimed error and claimed mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e committed Jul 17, 2023
1 parent ad9870e commit 58778a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
24 changes: 0 additions & 24 deletions abi/Airdrop.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AlreadyClaimed",
"type": "error"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -400,25 +395,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "claimed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "config",
Expand Down
2 changes: 0 additions & 2 deletions src/Airdrop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ import "sismo-connect-solidity/SismoLib.sol";
* The contract stores all verified results in storage
*/
contract Airdrop is ERC20, SismoConnect {
error AlreadyClaimed();
event AuthVerified(VerifiedAuth verifiedAuth);
event ClaimVerified(VerifiedClaim verifiedClaim);
event SignedMessageVerified(bytes verifiedSignedMessage);
using SismoConnectHelper for SismoConnectVerifiedResult;
mapping(uint256 => bool) public claimed;

// must correspond to requests defined in the app frontend
// Sismo Connect response's zk proofs will be checked against these requests.
Expand Down

0 comments on commit 58778a5

Please sign in to comment.