This directory contains an example on how to run smart contracts written in Solidity.
The example does these things:
- Compiles the contract
contracts/Greeter.sol - Instantiates a VM
- Creates an account
- Funds the account with 1 ETH
- Deploys the Greeter contract
- Calls a constant function
- Sends a transaction to the contract, modifying its state
- Calls a constant function to verify the state change
- Run
npm installin the root of this project - Run
npm installin this directory
- Run
npm run build:distin the root of this project - Run
npm run examplein this directory