Skip to content

Instantly share code, notes, and snippets.

@EthereumRemix
Created December 23, 2020 09:38
Show Gist options
  • Select an option

  • Save EthereumRemix/1c2fbd08f800f5f396d656319e9f7fa3 to your computer and use it in GitHub Desktop.

Select an option

Save EthereumRemix/1c2fbd08f800f5f396d656319e9f7fa3 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment