Skip to content

Commit

Permalink
Parse token ID for Rally mints into mint template
Browse files Browse the repository at this point in the history
  • Loading branch information
agans committed Sep 30, 2024
1 parent e317914 commit 094ea96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/floornfts
Submodule floornfts added at d6027b
3 changes: 3 additions & 0 deletions src/ingestors/rodeo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 094ea96

Please sign in to comment.