Last active
February 16, 2018 19:04
-
-
Save terhechte/aabd8cba41c23047477acb1047a488c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.0; | |
contract ContentCreatorScore { | |
address public owner = msg.sender; | |
struct Review { string journalistId; | |
string correctness; | |
string freeText; | |
string depth; | |
string url; | |
} | |
Review[] private reviews; | |
function _createReview(string _journalistId, | |
string _correctness, | |
string _freeText, | |
string _depth, | |
string _url) public { | |
require (msg.sender == owner); | |
reviews.push(Review(_journalistId, _correctness, _freeText, | |
_depth, _url)); | |
} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment