Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.25 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.25 KB

FlipCard Solidity Code

This code contains the Solidity implementation of the NFT Warranty cards. Here are the public getters and public mutation functions.

alt text

Installation

Install Truffle for running and testing blockchain locally

npm i -g truffle

Install ganache to run local ethereum blockchain. Download the desktop version from Here Clone this repository locally. Get inside this folder and run

npm install

Running blockchain locally

Start Local ethereum blockchain using Ganache. Simply run the application and click on "QUICKSTART" "Can't load image"

Get inside the code respository using command line

Run following command

truffle migrate

and the server will start.

Testing Smart Contract Locally (Automation)

Start the ganache server like we did in the "Running blockchain locally" above. Get inside the repository using command line and execute.

truffle test ./test/flipCard_test.js

This will deploy the server and run the tests so you can check that the smart contract is providing all the functionalities.