Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
4d047844
Commit
4d047844
authored
Dec 07, 2020
by
aniket-engg
Committed by
Aniket
Dec 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
f2f73660
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
examples.js
apps/remix-ide/src/app/editor/examples.js
+19
-2
No files found.
apps/remix-ide/src/app/editor/examples.js
View file @
4d047844
...
@@ -297,7 +297,7 @@ var deployWithEthers = `(async function() {
...
@@ -297,7 +297,7 @@ var deployWithEthers = `(async function() {
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let contract = await factory.deploy();
let contract = await factory.deploy(
...constructorArgs
);
console.log('Contract Address: ', contract.address);
console.log('Contract Address: ', contract.address);
...
@@ -309,7 +309,24 @@ var deployWithEthers = `(async function() {
...
@@ -309,7 +309,24 @@ var deployWithEthers = `(async function() {
}
}
})()`
})()`
var
readme
=
'readme'
var
readme
=
`REMIX EXAMPLE PROJECT
Remix example project is the project which is there at the time of very first loading of Remix. It contains mainly 3 directories:
'contracts', 'scripts' & 'tests'.
'contracts' directory holds 3 contracts with different complexity level.
'scripts' directory holds the scripts to deploy a contract using web3.js or ethers.js libraries.
'tests' directory contains a test file with unit tests for 'Ballot' contract.
DEPLOY CONTRACT
A contract can be deployed using the scripts in 'scripts' folder. Currently, they are configured to deploy the 'Storage' contract.
For deployment of any other contract, 'contractName' and 'constructorArgs' should be update (along with other code if required).
To run a script, just right click on file name and click 'Run'.
Consoles from script will appear in remix terminal.
`
module
.
exports
=
{
module
.
exports
=
{
storage
:
{
name
:
'contracts/1_Storage.sol'
,
content
:
storage
},
storage
:
{
name
:
'contracts/1_Storage.sol'
,
content
:
storage
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment