Skip to content

Commit

Permalink
Merge pull request #72 from RootstockCollective/nft-meta-update
Browse files Browse the repository at this point in the history
fix: NFT metadata
  • Loading branch information
shenshin authored Sep 20, 2024
2 parents 95b32e9 + b59f328 commit ca184d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nft/createMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import path from 'path'
import metadata from './metadata.json'

// change the NFT collection URL depending on whether you are on the testnet or mainnet
const communitiesUrl = 'https://frontend.testnet.dao.rif.technology/communities'
const communitiesUrl = 'https://app.rootstockcollective.xyz/communities'
// paste the CID of Pinata images folder
const imagesFolderCID = 'QmfDwhwpU21G9x2kzbhw1LjQGDUFLucAjcJsn8ivqTgXrm'
const imagesFolderCID = 'QmUSCZPeHVUtdScnnBfFbxUA5ndC3xw3oNBZ83BnfEKMyK'

/**
* Generates separate JSON metadata files from the metadata collection stored in the `metadata.json` file
Expand Down
Empty file removed nft/images/.gitkeep
Empty file.
4 changes: 4 additions & 0 deletions nft/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,9 @@
{
"name": "PrismPax",
"description": "A blockchain pioneer and event planner, reflecting the vibrant spectrum of decentralized ideas and organizing the future of Bitcoin with precision and flair."
},
{
"name": "The Decentralized Dreamers",
"description": "A visionary group of decentralized pioneers and creators, each contributing their unique talents and innovations to shape the future of Rootstock. Together, they form an unstoppable force, echoing their ideals and building a brighter, decentralized world."
}
]
2 changes: 1 addition & 1 deletion tasks/updateIpfsFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function updateIpfsFolder(
cid: string,
numFiles: number,
) {
const ea = await hre.ethers.getContractAt('EarlyAdopters', nftAddress)
const ea = await hre.ethers.getContractAt('EarlyAdoptersRootstockCollective', nftAddress)
const tokensAvailable = await ea.tokensAvailable()
await(await ea.setIpfsFolder(numFiles, cid)).wait()
const newTokensAvailable = await ea.tokensAvailable()
Expand Down

0 comments on commit ca184d2

Please sign in to comment.