Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 75 additions & 97 deletions lib/abis/LemonheadNFT.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions lib/components/features/lemonheads/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ function MintModal({
traits: traits.map(({ _id, image, ...rest }) => rest),
sponsor: sponsor?._id,
});
console.log('Mint data:', mintData);

if (!contractAddress) throw new Error('LemonheadNFT contract address not set');
if (!walletProvider) throw new Error('No wallet provider found');
Expand All @@ -364,8 +363,8 @@ function MintModal({
LemonheadNFTContract,
contractAddress,
walletProvider as Eip1193Provider,
sponsor ? 'mintFree' : 'mint',
[mintData.look, mintData.metadata, mintData.signature],
'mint',
[mintData.look, mintData.metadata, mintData.price, mintData.signature],
{ value: sponsor ? 0 : mintPrice },
);
setMintState((prev) => ({ ...prev, txHash: tx?.hash }));
Expand Down
2 changes: 1 addition & 1 deletion lib/services/lemonhead/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Cache = {
}

export const getApproval = async (wallet: string, look: string, sponsor?: string) => {
return request<{ signature: string }>(`/lemonhead/approval`, 'POST', { wallet, look, sponsor });
return request<{ signature: string; price: string }>(`/lemonhead/approval`, 'POST', { wallet, look, sponsor });
};

export const getCache = async (look: string) => {
Expand Down
1 change: 1 addition & 0 deletions lib/services/lemonhead/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const getMintNftData = async (traits: Trait[], wallet: string, sponsor?:
//-- use these to call the contract minting function
look: lookHash,
signature: data.signature,
price: data.price,

//-- for display purposes
image: imageUrl,
Expand Down
Loading