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