From 299f0104cbeddacd8ecc9e6e796d443f5f4b267a Mon Sep 17 00:00:00 2001 From: Prathmesh Aghao <89900988+prathmeshaghao@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:02:01 +0530 Subject: [PATCH] Update deploy.js changed .deployed() function and extracting address function --- smart_contract/scripts/deploy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smart_contract/scripts/deploy.js b/smart_contract/scripts/deploy.js index 2038c7d..1e453fc 100644 --- a/smart_contract/scripts/deploy.js +++ b/smart_contract/scripts/deploy.js @@ -2,9 +2,9 @@ const main = async () => { const transactionsFactory = await hre.ethers.getContractFactory("Transactions"); const transactionsContract = await transactionsFactory.deploy(); - await transactionsContract.deployed(); + await transactionsContract.waitForDeployment(); - console.log("Transactions address: ", transactionsContract.address); + console.log("Transactions address: ", transactionsContract.target); }; const runMain = async () => { @@ -17,4 +17,4 @@ const runMain = async () => { } }; -runMain(); \ No newline at end of file +runMain();