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();