Skip to content

Instantly share code, notes, and snippets.

View MasnadNehith's full-sized avatar
🎯
Focusing

Masnad Nehith MasnadNehith

🎯
Focusing
View GitHub Profile
@MasnadNehith
MasnadNehith / lottery.sol
Created July 21, 2018 12:26
Decentralized Lottery Smart Contract
pragma solidity ^0.4.0;
contract Lottery{
// varibale to store managers address
address public manager;
//we are storing the address of the participants
address[] public participants;
constructor () public {
/*--CSS--*/
.block {
text-align: center;
vertical-align: middle;
}
.circle {
background: #7f86ff;
border-radius: 200px;
color: white;
height: 150px;
<div className="container">
<div className="col-md-12">
<div className="card text-center">
<div className="card-header">
<h1>TOTAL WINNING POOL IS </h1>
<div className ="block">
<div className="circle">
<p>${this.state.total_amount}</p>
</div>
</div>