open files upon creation

pull/3852/head
yann300 1 year ago
parent 59cbf5a807
commit 047417d670
  1. 4
      libs/remix-ws-templates/src/script-templates/contract-deployer/index.ts
  2. 4
      libs/remix-ws-templates/src/script-templates/etherscan/index.ts

@ -4,8 +4,12 @@ export const contractDeployerScripts = async (plugin) => {
// @ts-ignore
(await import('!!raw-loader!./create2-factory-deploy.ts')).default)
await plugin.call('fileManager', 'open', 'scripts/contract-deployer/create2-factory-deploy.ts')
await plugin.call('fileManager', 'writeFile',
'scripts/contract-deployer/basic-contract-deploy.ts' ,
// @ts-ignore
(await import('!!raw-loader!./basic-contract-deploy.ts')).default)
await plugin.call('fileManager', 'open', 'scripts/contract-deployer/basic-contract-deploy.ts')
}

@ -4,8 +4,12 @@ export const etherscanScripts = async (plugin) => {
// @ts-ignore
(await import('!!raw-loader!./verifyScript.ts')).default)
await plugin.call('fileManager', 'open', 'scripts/etherscan/verifyScript.ts')
await plugin.call('fileManager', 'writeFile',
'scripts/etherscan/receiptGuidScript.ts' ,
// @ts-ignore
(await import('!!raw-loader!./receiptGuidScript.ts')).default)
await plugin.call('fileManager', 'open', 'scripts/etherscan/receiptGuidScript.ts')
}
Loading…
Cancel
Save