From 67cc1b70bcbe892cebaed88fce9de50d1652ec5d Mon Sep 17 00:00:00 2001 From: dragosrebegea Date: Fri, 13 Sep 2024 14:42:10 +0300 Subject: [PATCH] fix deploy-test-tokens --- tasks/deploy/test-tokens.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/deploy/test-tokens.ts b/tasks/deploy/test-tokens.ts index e31f005..7bcdbc7 100644 --- a/tasks/deploy/test-tokens.ts +++ b/tasks/deploy/test-tokens.ts @@ -12,7 +12,7 @@ task("deploy-test-tokens", "Deploys ERC20 contracts to use to test the bridge") const safeAddress = config["erc20Safe"]; const safeContractFactory = await hre.ethers.getContractFactory("ERC20Safe"); const safe = safeContractFactory.attach(safeAddress); - console.log("Safe at: ", safe.address); + console.log("Safe at: ", safe.target); //deploy contracts const genericERC20Factory = await hre.ethers.getContractFactory("GenericERC20"); @@ -21,5 +21,5 @@ task("deploy-test-tokens", "Deploys ERC20 contracts to use to test the bridge") const decimals = taskArgs.decimals; const usdcContract = await genericERC20Factory.deploy(tokenName, tokenSymbol, decimals); - console.log("Token deployed to:", usdcContract.getAddress()); + console.log("Token deployed to:", usdcContract.target); });