Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ async function main() {
const Storage = await ethers.getContractFactory(CONTRACT_NAME); // Use the global variable
const storage = await Storage.deploy();

await storage.deployed();
await storage.waitForDeployment();

console.log(
`${CONTRACT_NAME} deployed to ${storage.address}` // Use the global variable
`${CONTRACT_NAME} deployed to ${await storage.getAddress()}` // Use the global variable
);

process.exit(0);
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down