/eth-smart-contracts

A basic smart contract which gets caller name and outputs name if present in the stored addresses.

Primary LanguageJavaScript

eth-smart-contracts

It is a codebase where sample Ethereum smart contracts will be maintained. Please read this article before writing smart contracts.

Installation

$ npm i -g ethereumjs-testrpc
$ testrpc

Now in new terminal run

$ npm i -g truffle
$ git clone https://github.com/mayanktg/eth-smart-contracts.git
$ cd eth-smart-contracts
$ truffle compile
$ truffle migrate
$ truffle test

For acceptance testing

$ npm i -g codeceptjs-webdriverio
$ npm i -g nightmare nightmare-upload
$ codeceptjs run --steps