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

@ -3,9 +3,13 @@ export const contractDeployerScripts = async (plugin) => {
'scripts/contract-deployer/create2-factory-deploy.ts' ,
// @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')
}

@ -3,9 +3,13 @@ export const etherscanScripts = async (plugin) => {
'scripts/etherscan/verifyScript.ts' ,
// @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