Skip to content

A simple smart contract deployed on Rinkby TestNet Blockchain using Solidity, Web3, Ganache, Mocha

Notifications You must be signed in to change notification settings

PalakSDarji/InboxBlockChainDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run this commands when cloning this repo to install node.js dependencies:

1. npm init
2. npm install solc web3 mocha ganache-cli dotenv @truffle/hdwallet-provider

Update test script in package.json to be "test":"mocha"

Create .env file in root directory, add your metamask mnemonic like this:
METAMASK=your_mnemonic_directly_without_any_comma

To compile the contract: node compile.js
To run testcases: npm run test
To deploy the contract to Rinkby testnet: node deploy.js

In order to interact with deployed contract, copy the deployment address and paste it in
remix with "injected web3" as blockChain VM using MetaMask extension and click "AtAddress" to load the 
contract from blockChain.

Note: use -g to install npm packages globally.

About

A simple smart contract deployed on Rinkby TestNet Blockchain using Solidity, Web3, Ganache, Mocha

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published