Skip to content

Instantly share code, notes, and snippets.

@terhechte
Last active February 16, 2018 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terhechte/aabd8cba41c23047477acb1047a488c8 to your computer and use it in GitHub Desktop.
Save terhechte/aabd8cba41c23047477acb1047a488c8 to your computer and use it in GitHub Desktop.
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