Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.