Skip to content

Commit e269fb7

Browse files
committed
fix: remove await from gre initializations
Signed-off-by: Tomás Migone <[email protected]>
1 parent 519a41f commit e269fb7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

tasks/deployment/accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { updateItemValue, writeConfig } from '../../cli/config'
66
task('migrate:accounts', '[localhost] Creates protocol accounts and saves them in graph config')
77
.addParam('graphConfig', cliOpts.graphConfig.description, cliOpts.graphConfig.default)
88
.setAction(async (taskArgs, hre) => {
9-
const { graphConfig, getDeployer } = await hre.graph(taskArgs)
9+
const { graphConfig, getDeployer } = hre.graph(taskArgs)
1010

1111
console.log('> Generating addresses')
1212

tasks/deployment/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ task('update-config', 'Update graph config parameters with onchain data')
110110
if (!sure) return
111111
}
112112

113-
const { graphConfig, contracts } = await hre.graph({ graphConfig: configFile })
113+
const { graphConfig, contracts } = hre.graph({ graphConfig: configFile })
114114

115115
// general parameters
116116
console.log(`> General`)

tasks/deployment/ownership.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ task(
99
.addParam('addressBook', cliOpts.addressBook.description, cliOpts.addressBook.default)
1010
.addParam('graphConfig', cliOpts.graphConfig.description, cliOpts.graphConfig.default)
1111
.setAction(async (taskArgs, hre) => {
12-
const { contracts, getNamedAccounts } = await hre.graph(taskArgs)
12+
const { contracts, getNamedAccounts } = hre.graph(taskArgs)
1313
const { governor } = await getNamedAccounts()
1414

1515
console.log('> Accepting ownership of contracts')

tasks/deployment/unpause.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ task('migrate:unpause', 'Unpause protocol')
55
.addParam('addressBook', cliOpts.addressBook.description, cliOpts.addressBook.default)
66
.addParam('graphConfig', cliOpts.graphConfig.description, cliOpts.graphConfig.default)
77
.setAction(async (taskArgs, hre) => {
8-
const { contracts, getNamedAccounts } = await hre.graph(taskArgs)
8+
const { contracts, getNamedAccounts } = hre.graph(taskArgs)
99
const { governor } = await getNamedAccounts()
1010

1111
console.log('> Unpausing protocol')

tasks/verify/verify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ task('sourcifyAll', 'Verifies all contracts on sourcify')
4444
throw new Error('Cannot verify contracts without a network')
4545
}
4646
console.log(`> Verifying all contracts on chain ${chainName}[${chainId}]...`)
47-
const { addressBook } = await hre.graph({ addressBook: _args.addressBook })
47+
const { addressBook } = hre.graph({ addressBook: _args.addressBook })
4848

4949
for (const contractName of addressBook.listEntries()) {
5050
console.log(`\n> Verifying contract ${contractName}...`)
@@ -84,7 +84,7 @@ task('verifyAll', 'Verifies all contracts on etherscan')
8484
}
8585

8686
console.log(`> Verifying all contracts on chain ${chainName}[${chainId}]...`)
87-
const { addressBook, graphConfig } = await hre.graph({
87+
const { addressBook, graphConfig } = hre.graph({
8888
addressBook: args.addressBook,
8989
graphConfig: args.graphConfig,
9090
})

0 commit comments

Comments
 (0)