From e4e74d94eb7175ec65f6fbbfd726a464182517ad Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 12 Apr 2022 10:41:30 +0200 Subject: [PATCH] added description to script templates --- .../workspace/src/lib/templates/examples.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/templates/examples.ts b/libs/remix-ui/workspace/src/lib/templates/examples.ts index e780af51b1..c5ea1bd251 100644 --- a/libs/remix-ui/workspace/src/lib/templates/examples.ts +++ b/libs/remix-ui/workspace/src/lib/templates/examples.ts @@ -256,7 +256,12 @@ contract BallotTest { ` /* eslint-disable no-useless-escape */ -const deployWithWeb3 = `import { deploy } from './web3.ts' +const deployWithWeb3 = ` +// This script example is to deploy the "Storage" contract using Web3 library. +// Please make sure to compile "./contracts/1_Storage.sol" file before running this script. +// Use Right click -> "Run" from content menu of the file to run the script. + +import { deploy } from './web3.ts' (async () => { try { @@ -268,7 +273,12 @@ const deployWithWeb3 = `import { deploy } from './web3.ts' } })()` -const deployWithEthers = `import { deploy } from './ethers.ts' +const deployWithEthers = ` +// This script example is to deploy the "Storage" contract using ethers.js library. +// Please make sure to compile "./contracts/1_Storage.sol" file before running this script. +// Use Right click -> "Run" from content menu of the file to run the script. + +import { deploy } from './ethers.ts' (async () => { try {