Skip to content

Commit ac0e10a

Browse files
joaquim-vergesjnsdls
authored andcommitted
feat: add support for custom singlePhase drops (#5244)
1 parent 56bcd35 commit ac0e10a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add support for custom singlePhase drops
6+
7+
If you are using a custom drop contract, you can now set claim conditions and claim by passing the `singlePhaseDrop` option to the `setClaimConditions` and `claimTo` functions.
8+
9+
```ts
10+
setClaimConditions({
11+
contract,
12+
phases: [
13+
{
14+
startTime: new Date(0),
15+
maxClaimableSupply: 10n,
16+
},
17+
],
18+
tokenId: 0n,
19+
singlePhaseDrop: true, // <--- for custom drop contracts
20+
});
21+
```

0 commit comments

Comments
 (0)