Merge pull request #3852 from ethereum/generate_script

open files upon creation
pull/3856/head
yann300 1 year ago committed by GitHub
commit 0fb4af652d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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