Skip to content

LifnaJos/develop-test-and-deploy-smart-contract-using-Ganache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step - 1 : Install Ganache

  1. Change the execution mode

sudo chmod a+x ganache-2.7.1-linux-x86_64.AppImage

terminal_0

  1. Install libfuse2

sudo apt-get install fuse libfuse2

terminal_1

  1. Run the Ganache Image

./ganache-2.7.1-linux-x86_64.AppImage

terminal_2

  • Flash Screen of Gananche

gananche

  • Click on QuickStart

gananche

  • Accounts created in Gananche

gananche

  • Genesis Block created

ganache

  • Contents of Block 0

gananche

  • Log

gananche

Step - 2 : Connect Metamask with Ganache

  1. Login to Metamask Wallet
  2. Add Ganache Test Network with the following credentials

Ganache

  1. Add Accounts from Ganache into Metamask
  • Open the Ganache IDE, clicl on the privatre key for any account. Copy the Private Key

Ganache

  • Go to Matamask, select Import Account option.

Ganache

  • Paste the Private Key of the Account. Click on Import button.

Ganache

  • Check the status of Account added to the Metamask

Ganache

Step - 3 : Connect Remix IDE with Metamask

On the Remix IDE, select the Environment : Injected Provider(Metamask) . Follow the steps to establish Connection. Select an Account from the Wallet

Ganache

Step - 4 : Deploy Smart Contract in Remix IDE via Ganache Accounts added to Metamask

  1. After compiling the Smart Contract in Remix IDE, deploy the Contract.

Ganache

  1. Metamask Account status is updated

Ganache

  1. Check the Ganache Environment. We can see that the Transaction Count for the first account is 1 Ganache

  2. Check the Mined Block

Ganache

  1. Check the Transaction details

Ganache

  1. Perform the functions in the Smart Contract, Storage.sol

Ganache

  1. Chek the Transaction details in Ganache

Ganache

Acknowledgement

  • Metamask to understand how to install Metamask Wallet

*Ganache steps to install Ganache and understand the basics of Ganache