Skip to content

Commit

Permalink
add network chain id to project names
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Oct 24, 2023
1 parent a65ceac commit b8f1839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RUN pnpm hardhat compile

EXPOSE 8545/tcp

CMD ./docker/start-chain.sh
ENTRYPOINT ./docker/start-chain.sh
2 changes: 2 additions & 0 deletions scripts/dev/populate/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async function uploadFileToPinata(b: Buffer) {

async function main() {
console.log(`🟡 Creating projects (pinataBaseUrl ${pinataBaseUrl})`);
const network = hre.network;

const [account1, account2] = await ethers.getSigners();

Expand All @@ -73,6 +74,7 @@ async function main() {
const metadata = JSON.parse(
loadFixture(`projects/${i}/metadata.json`).toString()
);
metadata.title = `${metadata.title} (${network.config.chainId})`;
metadata.logoImg = logoCid;
metadata.bannerImg = bannerCid;

Expand Down

0 comments on commit b8f1839

Please sign in to comment.