Skip to content

Commit

Permalink
refactor(zora): use quantityCheck object
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Jul 10, 2024
1 parent 8e1bc86 commit 3da6174
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/zora/src/Zora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,11 @@ export const mint = async (
] as Address[])
: contractAddress

const initialArray = [
{
quantity: formatAmount(amount),
},
]
const andArray721: AndArrayItem[] = [...initialArray]
const andArray1155: AndArrayItem[] = [...initialArray]
const quantityCheck = {
quantity: formatAmount(amount),
}
const andArray721: AndArrayItem[] = [quantityCheck]
const andArray1155: AndArrayItem[] = [quantityCheck]

if (recipient) {
andArray721.push({
Expand Down

0 comments on commit 3da6174

Please sign in to comment.