Skip to content

Commit aaba101

Browse files
committed
feat(pods): update rewardsRecipients to use array for referralAddress
1 parent c101631 commit aaba101

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/pods/src/Pods.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ export const mint = async (
4848
$or: [
4949
{ mintReferral: referralAddress },
5050
{
51-
rewardsRecipients: {
52-
$and: [{ $first: referralAddress }, { $last: referralAddress }],
53-
},
51+
rewardsRecipients: [referralAddress],
5452
},
5553
],
5654
})

packages/pods/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type AndArrayItem =
1010
| { minterArguments: { $regex: string } }
1111
| { tokenId: number | string }
1212
| { mintReferral: Address }
13-
| { rewardsRecipients: { $and: [{ $first: Address }, { $last: Address }] } }
13+
| { rewardsRecipients: Address[] }
1414
| { $or: AndArrayItem[] }
1515

1616
export async function getLatestTokenId(

0 commit comments

Comments
 (0)