File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments