Skip to content

Commit

Permalink
ya
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Nov 19, 2024
1 parent a7955e4 commit 48c3ab6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/packages/v4/hooks/useLaunchProjectWithNftsTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { waitForTransactionReceipt } from '@wagmi/core'
import { JUICEBOX_MONEY_PROJECT_METADATA_DOMAIN } from 'constants/metadataDomain'
import { TxHistoryContext } from 'contexts/Transaction/TxHistoryContext'
import { useWallet } from 'hooks/Wallet'
import { DEFAULT_MEMO, NATIVE_TOKEN } from 'juice-sdk-core'
import { DEFAULT_MEMO, NATIVE_TOKEN, NATIVE_TOKEN_DECIMALS } from 'juice-sdk-core'
import {
jbPricesAddress,
useJBContractContext,
useReadJb721TiersHookStoreTiersOf,
useWriteJb721TiersHookProjectDeployerLaunchProjectFor,
Expand All @@ -23,6 +24,7 @@ import {
WaitForTransactionReceiptReturnType,
zeroAddress,
} from 'viem'
import { sepolia } from 'viem/chains'
import {
LaunchV2V3ProjectArgs,
transformV2V3CreateArgsToV4,
Expand All @@ -34,7 +36,6 @@ import {
SUPPORTED_JB_CONTROLLER_ADDRESS,
SUPPORTED_JB_MULTITERMINAL_ADDRESS
} from './useLaunchProjectTx'
import { sepolia } from 'viem/chains'

function createSalt() {
const base: string = '0x' + Math.random().toString(16).slice(2) // idk lol
Expand Down Expand Up @@ -151,13 +152,13 @@ export function useLaunchProjectWithNftsTx() {
const deployTiered721HookData: JBDeploy721TiersHookConfig = {
name: collectionName,
symbol: collectionSymbol,
baseUri: ipfsUri(''), // ?
baseUri: ipfsUri(''),
tokenUriResolver: zeroAddress,
contractUri: ipfsUri(collectionUri),
tiersConfig: {
currency,
decimals: 18,
prices: zeroAddress,
decimals: NATIVE_TOKEN_DECIMALS,
prices: jbPricesAddress[chainId],
tiers,
},
reserveBeneficiary: zeroAddress,
Expand Down

0 comments on commit 48c3ab6

Please sign in to comment.