Skip to content

Commit 5c4abdf

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
run prettier
1 parent 5d93730 commit 5c4abdf

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

contracts/drop/DropERC1155.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ contract DropERC1155 is
255255
uint256 _proofMaxQuantityPerTransaction
256256
) external payable nonReentrant {
257257
require(isTrustedForwarder(msg.sender) || _msgSender() == tx.origin, "BOT");
258-
258+
259259
// Get the active claim condition index.
260260
uint256 activeConditionId = getActiveClaimConditionId(_tokenId);
261261

src/test/drop/DropERC721.t.sol

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import "contracts/drop/DropERC721.sol";
77
import "../utils/BaseTest.sol";
88

99
contract 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

4133
contract 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

Comments
 (0)