Merge pull request #2297 from ethereum/scriptDescription

added description to script templates
pull/2258/head^2
yann300 3 years ago committed by GitHub
commit 7e5cb3fbb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/remix-ide-e2e/src/tests/search.test.ts
  2. 14
      libs/remix-ui/workspace/src/lib/templates/examples.ts

@ -33,11 +33,11 @@ module.exports = {
.clearValue('*[id="search_include"]').pause(2000)
.setValue('*[id="search_include"]', '**').sendKeys('*[id="search_include"]', browser.Keys.ENTER).pause(4000)
.elements('css selector', '.search_plugin_search_line', (res) => {
Array.isArray(res.value) && browser.assert.equal(res.value.length, 44)
Array.isArray(res.value) && browser.assert.equal(res.value.length, 48)
})
.setValue('*[id="search_exclude"]', ',contracts/**').sendKeys('*[id="search_exclude"]', browser.Keys.ENTER).pause(4000)
.elements('css selector', '.search_plugin_search_line', (res) => {
Array.isArray(res.value) && browser.assert.equal(res.value.length, 38)
Array.isArray(res.value) && browser.assert.equal(res.value.length, 42)
})
.clearValue('*[id="search_include"]').setValue('*[id="search_include"]', '*.sol, *.js, *.txt')
.clearValue('*[id="search_exclude"]').setValue('*[id="search_exclude"]', '.*/**/*')

@ -256,7 +256,12 @@ contract BallotTest {
`
/* eslint-disable no-useless-escape */
const deployWithWeb3 = `import { deploy } from './web3.ts'
const deployWithWeb3 = `
// This script can be used to deploy the "Storage" contract using Web3 library.
// Please make sure to compile "./contracts/1_Storage.sol" file before running this script.
// And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S
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 can be used to deploy the "Storage" contract using ethers.js library.
// Please make sure to compile "./contracts/1_Storage.sol" file before running this script.
// And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S
import { deploy } from './ethers.ts'
(async () => {
try {

Loading…
Cancel
Save