This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.22 <0.6.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract mycontract { | |
string value; | |
function set(string memory _value) public { | |
value =_value; | |
} | |
function get() public view returns(string memory) { | |
return value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract fir1 { //hey | |
address owner; | |
string password; //creating a major password | |
modifier onlyMe{ //modifier named as only me | |
require(msg.sender == owner); | |
_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract fir1 { //hey | |
address owner; | |
string password; //creating a major password | |
modifier onlyMe{ //modifier named as only me | |
require(msg.sender == owner); | |
_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract fir1 { //hey | |
address owner; | |
string password; //creating a major password | |
modifier onlyMe{ //modifier named as only me | |
require(msg.sender == owner); | |
_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract CaseReg{ | |
enum CaseType {Criminal,Civil,Narcotic,Terririst} | |
struct Petition { | |
uint Pgno; // it will increase while adding each case | |
string Prathy; //Accuse | |
string Vaadi; //mattavan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract CaseReg{ | |
enum CType {Criminal,Civil,Narcotic,Terririst} | |
struct Petition { | |
uint Pgno; // it will increase while adding each case | |
string Prathy; //Accuse | |
string Vaadi; //mattavan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract CaseReg{ | |
enum CType {Criminal,Civil,Narcotic,Terririst} | |
struct Petition { | |
uint Pgno; // it will increase while adding each case | |
string Prathy; //Accuse | |
string Vaadi; //mattavan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract CaseReg{ | |
enum CType {Criminal,Civil,Narcotic,Terririst} | |
uint public Pgno = 0 ; // it will increase while adding each case | |
struct Petition { | |
string Prathy; //Accuse | |
string Vaadi; //mattavan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.0; | |
contract CaseReg{ | |
enum CType {Criminal,Civil,Narcotic,Terririst} | |
uint public Pgno = 0 ; // it will increase while adding each case | |
struct Petition { | |
string Prathy; //Accuse | |
string Vaadi; //mattavan |
OlderNewer