Skip to content

Commit

Permalink
Changed function call to correct args
Browse files Browse the repository at this point in the history
  • Loading branch information
SurgeCode committed Feb 15, 2024
1 parent 5fb0db7 commit 9649f52
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions simple-token-drop/src/app/serverMint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ export const serverMint = async (): Promise<void> => {
}

export const mintArgs = (accountId: string): NearContractCall<MintArgsResponse> => {
return mint({
contractAddress: NFT_CONTRACT,
ownerId: accountId,
metadata: {
media: MEDIA_URL,
reference: REFERENCE_URL
}
})
return {
type: "FunctionCall",
params: {
methodName: "mint",
args: {
metadata: JSON.stringify({ reference: REFERENCE_URL, media: MEDIA_URL }),
nft_contract_id: NFT_CONTRACT
},
gas: "200000000000000",
deposit: "10000000000000000000000",
}
}
}

export const connect = async (
Expand Down

0 comments on commit 9649f52

Please sign in to comment.