From 351a6f90afc15c2dc2b85be792a014214dd06417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dan?= Date: Thu, 15 Jun 2023 15:14:07 -0400 Subject: [PATCH] feat: get address from deploy script instead --- scripts/deploy.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 2624d1d..f344512 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -39,7 +39,7 @@ const main = async function (..._args: Arg[]) { return } - await deployContractConstant( + const address = await deployContractConstant( wallet, contractJson, salt, @@ -52,8 +52,11 @@ const main = async function (..._args: Arg[]) { (contractJsonPath).split('.json')[0] } at ${contract.address}` ) + return contract.address }) .catch(console.error) + + return address } const args = process.argv.slice(2)