From 6a2471e76c022b16bc3b4c13435fc5af70148265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Thu, 21 Sep 2023 13:13:54 -0300 Subject: [PATCH] chore: deployment files for new contract MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Migone --- contracts/addresses.json | 2 +- contracts/tasks/deploy.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/addresses.json b/contracts/addresses.json index 183a093..2e5ff57 100644 --- a/contracts/addresses.json +++ b/contracts/addresses.json @@ -3,6 +3,6 @@ "Subscriptions": "0x482f58d3513E386036670404b35cB3F2DF67a750" }, "421613": { - "Subscriptions": "0x29f49a438c747e7Dd1bfe7926b03783E47f9447B" + "Subscriptions": "0x1c4053A0CEBfA529134CB9ddaE3C3D0B144384aA" } } diff --git a/contracts/tasks/deploy.ts b/contracts/tasks/deploy.ts index 23bd32e..887cbf5 100644 --- a/contracts/tasks/deploy.ts +++ b/contracts/tasks/deploy.ts @@ -6,6 +6,7 @@ import { deploySubscriptions } from '../utils/deploy' task('deploy', 'Deploy the subscription contract (use L2 network!)') .addParam('token', 'Address of the ERC20 token') + .addParam('recurringPayments', 'Address of the recurring payments contract') .addOptionalParam('epochSeconds', 'Epoch length in seconds.', 3, types.int) .setAction(async (taskArgs, hre: HardhatRuntimeEnvironment) => { const accounts = await hre.ethers.getSigners() @@ -16,7 +17,7 @@ task('deploy', 'Deploy the subscription contract (use L2 network!)') console.log('Deploying subscriptions contract with the account:', accounts[0].address); await deploySubscriptions( - [taskArgs.token, taskArgs.epochSeconds], + [taskArgs.token, taskArgs.epochSeconds, taskArgs.recurringPayments], accounts[0] as unknown as Wallet, ) }) \ No newline at end of file