MultiMint
contract creatMinter
s who in constructor do- call
publicMint
and transfer the minted NFT toto
- call
yarn hh
=yarn hardhat
yarn fork
=yarn hardhat node
yarn deploy
=yarn run hardhat scripts/deploy.ts
yarn mint
=yarn run hardhat scripts/mint.ts
(before all operations, config .env
)
- deploy with
scripts/deploy.ts
yarn deploy --network polygon
- modify the
MULTIMINT_ADDR
env var - mint with
scripts/mint.ts
yarn mint --network polygon
yarn fork
to fork mainnet to localhost- turn on
--network localhost
for testing
yarn hh test
, you can also see the expected gas cost when testing