Skip to content

Commit 03ac32c

Browse files
committed
fixed inconsistencies with the proof
1 parent 6affeb2 commit 03ac32c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DropKit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export default class DropKit {
124124
return mintedNfts.toNumber()
125125
}
126126

127-
async generateProof(): Promise<string> {
127+
async generateProof(): Promise<{ proof: Array<string> }> {
128128
const { data } = await axios.post(
129129
`${this.dev ? API_ENDPOINT_DEV : API_ENDPOINT}/drops/list/${
130130
this.collectionId
@@ -145,8 +145,8 @@ export default class DropKit {
145145

146146
// Presale mint
147147
try {
148-
const proof = await this.generateProof()
149-
const results = await this.contract.presaleMint(quantity, proof, {
148+
const data = await this.generateProof()
149+
const results = await this.contract.presaleMint(quantity, data.proof, {
150150
value: ethers.utils.parseEther(price.toString()).mul(quantity),
151151
})
152152
await results.wait()

0 commit comments

Comments
 (0)