Skip to content

Instantly share code, notes, and snippets.

@Aniket-Engg
Created December 9, 2020 12:06
Show Gist options
  • Save Aniket-Engg/bb42d1708e48db5156a01893a4c96e4a to your computer and use it in GitHub Desktop.
Save Aniket-Engg/bb42d1708e48db5156a01893a4c96e4a 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.
// this line is added to create a gist. Empty file is not allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment