6. How to install Ganache Blockchain on Windows and deploy smart contract using it:

6. How to install Ganache Blockchain on Windows and deploy smart contract using it:

 

npm install –g ganache -cli

 

pragma solidity >=0.4.22 <0.6.0;

contract student {

string name;

uint age;

function setStudentDetails(string _name, uint _age) public{

name=_name;

age=_age;

}

function getStudentDetails() public view returns(string, uint){

return (name, age);

}

}