Skip to content

Instantly share code, notes, and snippets.

View spidertwin2's full-sized avatar
🐨
code is poetry

Surabhi Gupta spidertwin2

🐨
code is poetry
View GitHub Profile
pragma solidity ^0.4.18;
contract Ownable {
address owner;
modifier onlyOwner {
require (owner == msg.sender);
_;
}
pragma solidity ^0.4.0;
contract hotel {
string public hotelName;
string public location;
uint public numRooms;
constructor(string name, string loc, uint r) public {
hotelName = name;