diff --git a/deploy/deploy-zksync.ts b/deploy/deploy-zksync.ts index 4aa8666..9809f5e 100644 --- a/deploy/deploy-zksync.ts +++ b/deploy/deploy-zksync.ts @@ -25,7 +25,7 @@ export default async function main(hre: HardhatRuntimeEnvironment) { const artifact = await deployer.loadArtifact("Greeter"); const contract = await deployer.deploy(artifact, ["Hello, Hardhat!"]); - await contract.deployed(); + await contract.waitForDeployment(); - console.log("Greeter deployed to:", contract.address); + console.log("Greeter deployed to:", await contract.getAddress()); } diff --git a/hardhat.config.ts b/hardhat.config.ts index 44aba46..c1db0f5 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -1,7 +1,7 @@ import { HardhatUserConfig, task, vars } from "hardhat/config"; import "@nomicfoundation/hardhat-ethers"; import "@nomicfoundation/hardhat-chai-matchers"; -import "@nomicfoundation/hardhat-ethers"; +import "@nomicfoundation/hardhat-verify"; import "@nomicfoundation/hardhat-ledger"; import "@typechain/hardhat";