Created
May 13, 2020 13:18
-
-
Save anubhavgirdhar/355ed70ba8da49cb27f69b04f001fc00 to your computer and use it in GitHub Desktop.
Smart Contract for a Quotes DApp to store a quote and its respective owner on the Ethereum Blockchain
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 Quote { | |
string public quote; | |
address public owner; | |
function setQuote(string memory newQuote) public { | |
quote = newQuote; | |
owner = msg.sender; | |
} | |
function getQuote() public view returns (string memory currentQuote, address currentOwner) | |
{ | |
currentQuote = quote; | |
currentOwner = owner; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment