(pluginPath: string, content: string)
| 70 | console.log(`Done. Updated chains for ${count} plugins.`) |
| 71 | |
| 72 | async function writeContent(pluginPath: string, content: string) { |
| 73 | const text = await fs |
| 74 | .readFile(pluginPath, 'utf8') |
| 75 | .then((text) => text.replace(/type ChainId =[\s\S]*$/, content)) |
| 76 | await fs.writeFile(pluginPath, text, 'utf8') |
| 77 | } |
no outgoing calls
no test coverage detected