Skip to content

Commit afeda47

Browse files
committed
feat: graphConfig consistent usage
1 parent 5223807 commit afeda47

File tree

1 file changed

+3
-1
lines changed
  • packages/contracts/task/tasks/deployment

1 file changed

+3
-1
lines changed

packages/contracts/task/tasks/deployment/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
updateGeneralParams,
77
writeConfig,
88
} from '@graphprotocol/sdk'
9+
import { readConfig } from '@graphprotocol/contracts-task'
910
import { greTask } from '@graphprotocol/sdk/gre'
1011

1112
greTask('update-config', 'Update graph config parameters with onchain data')
@@ -30,7 +31,8 @@ greTask('update-config', 'Update graph config parameters with onchain data')
3031
if (!sure) return
3132
}
3233

33-
const { graphConfig, contracts } = hre.graph({ graphConfig: configFile })
34+
const { contracts } = hre.graph({ graphConfig: configFile })
35+
const graphConfig = readConfig(configFile, false)
3436

3537
// general parameters
3638
console.log(`> General`)

0 commit comments

Comments
 (0)