lesson 14 random question about tags
#3120
-
Hi In NFT Chapter we have 3 contracts and every contract has different tags like : When we run : `npx hardhat deploy --tags "mocks,RandomIpfsNft" `npx hardhat deploy --tags "mocks,dynamicsvg". Contracts gets deployed individually. Now Question is if i want to deploy all contracts all together then i run : npx hardhat deploy --tags "mocks,main" and it gives me an Error. If anyone can help me to understand it I would highly appreciate that. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
If you wanna deploy all of your contracts at once, Just run : The In the video ahead, we will gonna make another deploy script called So, with the And we will gonna run our mint script individually by
So, That's the difference between |
Beta Was this translation helpful? Give feedback.
-
hey @abossofmyself can you please help me with this here is my randomIpfsNft.test.js const {developmentChains, networkConfig} = require("../../helper-hardhat-config") !developmentChains.includes(network.name)?describe.skip:describe("randomIpfs NFT test", function(){ beforeEach(async function(){ describe("getBreedFromModdedRng", async () =>{ }) firstly, i do not know where i am going wrong but half of these tests are not working |
Beta Was this translation helpful? Give feedback.
@TimeKeyRoll :
If you wanna deploy all of your contracts at once, Just run :
npx hardhat deploy
The
main
tag we made for our test net deployment,In the video ahead, we will gonna make another deploy script called
04-mint.js
In that we will mint all the NFTs from all three contracts at once, And in that script we will not going to have themain
tag!So, with the
main
tag we can only deploy all our contracts on the testnet, without interfering our04-mint.js
deploy script.And we will gonna run our mint script individually by
mint
tag.all
tag is an option to use in your testing! And its upto you to use theall
tag in your testing or just use the specific contracts name instead!So, That's…