We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8617ee2 commit 048952cCopy full SHA for 048952c
tasks/deployment/sync.ts
@@ -36,8 +36,10 @@ task('migrate:sync', 'Sync controller contracts')
36
if (isL2) {
37
console.log('> Syncing cache on L2GraphTokenGateway')
38
txs.push(await contracts['L2GraphTokenGateway'].connect(deployer).syncAllContracts())
39
- console.log('> Syncing cache on L2Reservoir')
40
- txs.push(await contracts['L2Reservoir'].connect(deployer).syncAllContracts())
+ if (contracts['L2Reservoir']) {
+ console.log('> Syncing cache on L2Reservoir')
41
+ txs.push(await contracts['L2Reservoir'].connect(deployer).syncAllContracts())
42
+ }
43
} else {
44
// L1 chains might not have these contracts deployed yet...
45
if (contracts['L1GraphTokenGateway']) {
0 commit comments