Skip to content

Commit 61102b1

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
make claim nonReentrant
1 parent dd2559a commit 61102b1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

contracts/drop/SignatureDrop.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,18 @@ contract SignatureDrop is
240240
emit TokensMinted(_msgSender(), _req.to, tokenIdToMint, _req.quantity, _req.pricePerToken, _req.currency);
241241
}
242242

243+
/// @dev Lets an account claim tokens.
244+
function claim(
245+
address _receiver,
246+
uint256 _quantity,
247+
address _currency,
248+
uint256 _pricePerToken,
249+
AllowlistProof calldata _allowlistProof,
250+
bytes memory _data
251+
) public payable override nonReentrant {
252+
super.claim(_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);
253+
}
254+
243255
/*///////////////////////////////////////////////////////////////
244256
Internal functions
245257
//////////////////////////////////////////////////////////////*/

contracts/feature/DropSinglePhase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ abstract contract DropSinglePhase is IDropSinglePhase, Context {
4949
uint256 _pricePerToken,
5050
AllowlistProof calldata _allowlistProof,
5151
bytes memory _data
52-
) external payable virtual {
52+
) public payable virtual {
5353
_beforeClaim(_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);
5454

5555
bytes32 activeConditionId = conditionId;

0 commit comments

Comments
 (0)