From 094ea965ca588cb065b6ab5be651ab6216b76a81 Mon Sep 17 00:00:00 2001 From: Alicia Gansley Date: Mon, 30 Sep 2024 17:13:28 -0400 Subject: [PATCH] Parse token ID for Rally mints into mint template --- scripts/floornfts | 1 + src/ingestors/rodeo/index.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 160000 scripts/floornfts diff --git a/scripts/floornfts b/scripts/floornfts new file mode 160000 index 0000000..d6027b6 --- /dev/null +++ b/scripts/floornfts @@ -0,0 +1 @@ +Subproject commit d6027b6b92690115b7efa4d39dc0391fc2172aa0 diff --git a/src/ingestors/rodeo/index.ts b/src/ingestors/rodeo/index.ts index 82bd45e..bbdb58b 100644 --- a/src/ingestors/rodeo/index.ts +++ b/src/ingestors/rodeo/index.ts @@ -7,6 +7,7 @@ import { BigNumber } from 'alchemy-sdk'; import { MintTemplateBuilder } from '../../lib/builder/mint-template-builder'; import { RODEO_ABI } from './abi'; import { getRodeoFeeInEth } from './onchain-metadata'; +import { parse } from 'path'; export class RodeoIngestor implements MintIngestor { configuration = { @@ -74,9 +75,11 @@ export class RodeoIngestor implements MintIngestor { mintBuilder.setName(name).setDescription(description).setFeaturedImageUrl(image); const totalPrice = await getRodeoFeeInEth(sale_terms_id, user.address, mintAddress, resources.alchemy); + const tokenIdNum = parseInt(tokenId); mintBuilder.setMintOutputContract({ chainId, address: contractAddress, + tokenId: isNaN(tokenIdNum) ? null : tokenIdNum, }); mintBuilder.setCreator({