Skip to content

Commit

Permalink
Update renoun.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed Jun 1, 2022
1 parent da421a3 commit be831c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/contracts/renoun.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ contract Renoun is ERC721 {
uint256 public totalSupply;
address private _admin;
address private _rendererAddress;
uint256 public repositoryStars;
uint256 public repositoryContributors;

/// @param _pullRequestID The ID of the pull request
/// @param _pullRequestTitle The title of the pull request
Expand Down Expand Up @@ -140,6 +142,9 @@ contract Renoun is ERC721 {
require(_to != address(0), "Renoun: Cannot mint to the null address");
require(_pullRequestID > 0, "Renoun: Pull request ID must be greater than 0");

repositoryStars = _repositoryStars;
repositoryContributors = _repositoryContributors;

Contribution memory _contribution = Contribution(
_pullRequestID,
_pullRequestTitle,
Expand All @@ -150,8 +155,8 @@ contract Renoun is ERC721 {
_commitHash,
repositoryOwner,
repositoryName,
_repositoryStars,
_repositoryContributors
repositoryStars,
repositoryContributors
);
totalSupply++;
_ownership[totalSupply] = _to;
Expand Down

0 comments on commit be831c7

Please sign in to comment.