mirror of
https://github.com/autistic-symposium/web3-starter-sol.git
synced 2025-07-23 07:00:37 -04:00
add_files
This commit is contained in:
parent
6a1272df4c
commit
fb77004daf
22 changed files with 1226 additions and 2 deletions
14
boilerplates/solidity_101/scripts/deploy-contract.js
Normal file
14
boilerplates/solidity_101/scripts/deploy-contract.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
async function main() {
|
||||
const nft = await ethers.getContractFactory("MiaNFT");
|
||||
|
||||
const nft_deploy = await nft.deploy();
|
||||
console.log(" ⛓🧱✨ Contract address:", nft_deploy.address);
|
||||
console.log(" ➡️ (Please add this string to .env)");
|
||||
}
|
||||
|
||||
main()
|
||||
.then(() => process.exit(0))
|
||||
.catch(e => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue