(configPath: string)
| 19 | } |
| 20 | |
| 21 | const readConfig = (configPath: string): unknown => { |
| 22 | const goParse = goSync(() => JSON.parse(fs.readFileSync(configPath, 'utf8'))); |
| 23 | if (!goParse.success) throw new Error('Failed to parse config file'); |
| 24 | |
| 25 | return goParse.data; |
| 26 | }; |
| 27 | |
| 28 | export function addDefaultContractAddresses(config: configTypes.Config): configTypes.Config { |
| 29 | const ctx = { addIssue: () => {}, path: [] }; // Unused, but required by validator functions |
no outgoing calls
no test coverage detected