@@ -7,7 +7,6 @@ import "contracts/drop/DropERC721.sol";
77import "../utils/BaseTest.sol " ;
88
99contract SubExploitContract is ERC721Holder , ERC1155Holder {
10-
1110 DropERC721 internal drop;
1211 address payable internal master;
1312
@@ -25,21 +24,13 @@ contract SubExploitContract is ERC721Holder, ERC1155Holder {
2524 bytes32 [] calldata _proofs ,
2625 uint256 _proofMaxQuantityPerTransaction
2726 ) external {
28- drop.claim (
29- _receiver,
30- _quantity,
31- _currency,
32- _pricePerToken,
33- _proofs,
34- _proofMaxQuantityPerTransaction
35- );
27+ drop.claim (_receiver, _quantity, _currency, _pricePerToken, _proofs, _proofMaxQuantityPerTransaction);
3628
3729 selfdestruct (master);
3830 }
3931}
4032
4133contract MasterExploitContract is ERC721Holder , ERC1155Holder {
42-
4334 address internal drop;
4435
4536 constructor (address _drop ) {
@@ -55,7 +46,7 @@ contract MasterExploitContract is ERC721Holder, ERC1155Holder {
5546 bytes32 [] calldata _proofs ,
5647 uint256 _proofMaxQuantityPerTransaction
5748 ) external {
58- for (uint256 i = 0 ; i < 100 ; i ++ ) {
49+ for (uint256 i = 0 ; i < 100 ; i++ ) {
5950 SubExploitContract sub = new SubExploitContract (address (drop));
6051 sub.claimDrop (_receiver, _quantity, _currency, _pricePerToken, _proofs, _proofMaxQuantityPerTransaction);
6152 }
@@ -169,7 +160,7 @@ contract DropERC721Test is BaseTest {
169160 drop.lazyMint (100 , "ipfs:// " , bytes ("" ));
170161 vm.prank (deployer);
171162 drop.setClaimConditions (conditions, false );
172-
163+
173164 vm.prank (getActor (5 ), getActor (5 ));
174165 drop.claim (receiver, 1 , address (0 ), 0 , proofs, 0 );
175166
0 commit comments