Skip to content

Commit

Permalink
chore: deployment files for new contract
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
  • Loading branch information
tmigone committed Sep 21, 2023
1 parent 435c700 commit 6a2471e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"Subscriptions": "0x482f58d3513E386036670404b35cB3F2DF67a750"
},
"421613": {
"Subscriptions": "0x29f49a438c747e7Dd1bfe7926b03783E47f9447B"
"Subscriptions": "0x1c4053A0CEBfA529134CB9ddaE3C3D0B144384aA"
}
}
3 changes: 2 additions & 1 deletion contracts/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
)
})

0 comments on commit 6a2471e

Please sign in to comment.