Skip to content

Commit 0aed5eb

Browse files
committed
feat(task): split unpause task into protocol and bridge tasks
Signed-off-by: Tomás Migone <[email protected]>
1 parent a7ba535 commit 0aed5eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/deployment/unpause.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { task } from 'hardhat/config'
22
import { cliOpts } from '../../cli/defaults'
33
import GraphChain from '../../gre/helpers/network'
44

5-
task('migrate:unpause', 'Unpause protocol (except bridge)')
5+
task('migrate:unpause:protocol', 'Unpause protocol (except bridge)')
66
.addOptionalParam('addressBook', cliOpts.addressBook.description)
77
.addOptionalParam('graphConfig', cliOpts.graphConfig.description)
88
.setAction(async (taskArgs, hre) => {
@@ -17,7 +17,7 @@ task('migrate:unpause', 'Unpause protocol (except bridge)')
1717
console.log('Done!')
1818
})
1919

20-
task('migrate:unpause-bridge', 'Unpause bridge')
20+
task('migrate:unpause:bridge', 'Unpause bridge')
2121
.addOptionalParam('addressBook', cliOpts.addressBook.description)
2222
.addOptionalParam('graphConfig', cliOpts.graphConfig.description)
2323
.setAction(async (taskArgs, hre) => {
@@ -29,8 +29,8 @@ task('migrate:unpause-bridge', 'Unpause bridge')
2929
const GraphTokenGateway = GraphChain.isL2(graph.chainId)
3030
? L2GraphTokenGateway
3131
: L1GraphTokenGateway
32-
const tx2 = await GraphTokenGateway.connect(governor).setPaused(false)
33-
await tx2.wait()
32+
const tx = await GraphTokenGateway.connect(governor).setPaused(false)
33+
await tx.wait()
3434

3535
console.log('Done!')
3636
})

0 commit comments

Comments
 (0)