diff --git a/libs/remix-ws-templates/src/script-templates/contract-deployer/index.ts b/libs/remix-ws-templates/src/script-templates/contract-deployer/index.ts index 0fbeeb1f48..55c9694392 100644 --- a/libs/remix-ws-templates/src/script-templates/contract-deployer/index.ts +++ b/libs/remix-ws-templates/src/script-templates/contract-deployer/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') } \ No newline at end of file diff --git a/libs/remix-ws-templates/src/script-templates/etherscan/index.ts b/libs/remix-ws-templates/src/script-templates/etherscan/index.ts index 34000b7ca2..01a37e5d98 100644 --- a/libs/remix-ws-templates/src/script-templates/etherscan/index.ts +++ b/libs/remix-ws-templates/src/script-templates/etherscan/index.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') } \ No newline at end of file