Skip to content

Commit ff11ec2

Browse files
committed
fix: use separate task to unpause bridge
1 parent 1d5dde2 commit ff11ec2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

tasks/deployment/unpause.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,29 @@ 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 and bridge')
5+
task('migrate:unpause', 'Unpause protocol (except bridge)')
66
.addOptionalParam('addressBook', cliOpts.addressBook.description)
77
.addOptionalParam('graphConfig', cliOpts.graphConfig.description)
88
.setAction(async (taskArgs, hre) => {
99
const graph = hre.graph(taskArgs)
1010
const { governor } = await graph.getNamedAccounts()
11-
const { Controller, L1GraphTokenGateway, L2GraphTokenGateway } = graph.contracts
11+
const { Controller } = graph.contracts
1212

1313
console.log('> Unpausing protocol')
1414
const tx = await Controller.connect(governor).setPaused(false)
1515
await tx.wait()
1616

17+
console.log('Done!')
18+
})
19+
20+
task('migrate:unpause-bridge', 'Unpause bridge')
21+
.addOptionalParam('addressBook', cliOpts.addressBook.description)
22+
.addOptionalParam('graphConfig', cliOpts.graphConfig.description)
23+
.setAction(async (taskArgs, hre) => {
24+
const graph = hre.graph(taskArgs)
25+
const { governor } = await graph.getNamedAccounts()
26+
const { L1GraphTokenGateway, L2GraphTokenGateway } = graph.contracts
27+
1728
console.log('> Unpausing bridge')
1829
const GraphTokenGateway = GraphChain.isL2(graph.chainId)
1930
? L2GraphTokenGateway

0 commit comments

Comments
 (0)