diff --git a/.env.dev b/.env.dev index 8c8f5bb0..2e72ac9a 100644 --- a/.env.dev +++ b/.env.dev @@ -6,10 +6,10 @@ NEXT_PUBLIC_BUILD_ID= NEXT_PUBLIC_RIF_ADDRESS=0x19f64674d8a5b4e652319f5e239efd3bc969a1fe NEXT_PUBLIC_STRIF_ADDRESS=0xC4b091d97AD25ceA5922f09fe80711B7ACBbb16f NEXT_PUBLIC_GOVERNOR_ADDRESS=0xB1A39B8f57A55d1429324EEb1564122806eb297F -NEXT_PUBLIC_EA_NFT_ADDRESS=0x979deF73ec80B8AE24Ae46765b81D9aF7b1C9327 +NEXT_PUBLIC_EA_NFT_ADDRESS=0xa060A65967cb9b9511E3A4ec091Aa81c6dCe6662 NEXT_PUBLIC_MULTICALL_ADDRESS=0xcA11bde05977b3631167028862bE2a173976CA11 NEXT_PUBLIC_GRANTS_BUCKET_ADDRESS=0xfaca664c661af7e0e630c8f92b401012cd2a30ef NEXT_PUBLIC_GRANTS_ACTIVE_BUCKET_ADDRESS=0x2217E4d3Ae0A6E30075D1B5a7b8C1520E8009f49 NEXT_PUBLIC_GROWTH_BUCKET_ADDRESS=0x420f39968009a0e8693a0e1bba633cd99eaffb9b NEXT_PUBLIC_GENERAL_BUCKET_ADDRESS=0x72Ed7d7b7835Ad62B1f9b6280bAd62618aA71461 -NEXT_PUBLIC_CHAIN_ID=31 \ No newline at end of file +NEXT_PUBLIC_CHAIN_ID=31 diff --git a/.env.qa b/.env.qa index 8abeaed4..94568b59 100644 --- a/.env.qa +++ b/.env.qa @@ -12,4 +12,4 @@ NEXT_PUBLIC_GRANTS_BUCKET_ADDRESS=0xfaca664c661af7e0e630c8f92b401012cd2a30ef NEXT_PUBLIC_GRANTS_ACTIVE_BUCKET_ADDRESS=0x2217E4d3Ae0A6E30075D1B5a7b8C1520E8009f49 NEXT_PUBLIC_GROWTH_BUCKET_ADDRESS=0x420f39968009a0e8693a0e1bba633cd99eaffb9b NEXT_PUBLIC_GENERAL_BUCKET_ADDRESS=0x72Ed7d7b7835Ad62B1f9b6280bAd62618aA71461 -NEXT_PUBLIC_CHAIN_ID=31 \ No newline at end of file +NEXT_PUBLIC_CHAIN_ID=31 diff --git a/.env.testnet b/.env.testnet index c0984ae6..59ea6bb6 100644 --- a/.env.testnet +++ b/.env.testnet @@ -6,7 +6,7 @@ NEXT_PUBLIC_BUILD_ID= NEXT_PUBLIC_RIF_ADDRESS=0x19f64674d8a5b4e652319f5e239efd3bc969a1fe NEXT_PUBLIC_STRIF_ADDRESS=0x4861198e9A6814EBfb152552D1b1a37426C54D23 NEXT_PUBLIC_GOVERNOR_ADDRESS=0x2109FF4a9D5548a21F877cA937Ac5847Fde49694 -NEXT_PUBLIC_EA_NFT_ADDRESS=0x979deF73ec80B8AE24Ae46765b81D9aF7b1C9327 +NEXT_PUBLIC_EA_NFT_ADDRESS=0x0Ee4e11f2F2B551cA31Ea7873c7bA675cb51A59d NEXT_PUBLIC_MULTICALL_ADDRESS=0xcA11bde05977b3631167028862bE2a173976CA11 NEXT_PUBLIC_GRANTS_BUCKET_ADDRESS=0xfaca664c661af7e0e630c8f92b401012cd2a30ef NEXT_PUBLIC_GRANTS_ACTIVE_BUCKET_ADDRESS=0x2217E4d3Ae0A6E30075D1B5a7b8C1520E8009f49 diff --git a/src/shared/hooks/useCommunity.ts b/src/shared/hooks/useCommunity.ts index 46067245..cfb7ad2a 100644 --- a/src/shared/hooks/useCommunity.ts +++ b/src/shared/hooks/useCommunity.ts @@ -84,14 +84,13 @@ const useMintNFT = (nftAddress?: Address, tokensAvailable?: number) => { const { writeContractAsync: mint, isPending, data: hash } = useWriteContract() const { isLoading, isSuccess } = useWaitForTransactionReceipt({ hash }) - const onMintNFT = useCallback(async () => { + const onMintNFT = useCallback(() => { if (!nftAddress) throw new Error('Unknown NFT address') if (!tokensAvailable) throw new Error('No NFTs available to mint') - return await mint({ + return mint({ abi: abiContractsMap[nftAddress], - address: nftAddress || '0x0', + address: nftAddress, functionName: 'mint', - args: [], }) }, [mint, nftAddress, tokensAvailable])