This is part of the FreeCodeCamp Solidity & Javascript Blockchain Course.
Contract address: 0xAEdC20dc42643b8420157837C93F0Da9cFe91043
Clone this repo and install yarn dependencies. Nodejs is required.
git clone https://github.com/minhlong149/ethersjs-simple-storage
cd ethersjs-simple-storage
yarn install
-
Run your Ganache local chain by hitting Quickstart on your ganache application
-
Copy the
RPC_SERVER
sting in your Ganache CLI, and place it into your.env
file. -
Hit the key on one of the accounts, then copy the
PRIVATE_KEY
you see and place it into your.env
file. -
Run
yarn compile
to compile your code. You'll see filesSimpleStorage_sol_SimpleStorage.abi
andSimpleStorage_sol_SimpleStorage.bin
be created. -
Deploy your application by running the following command:
yarn node deploy.js