From be831c71c7e22c837cbe604a1fa41d48bd77d1c2 Mon Sep 17 00:00:00 2001 From: Jonathan Becker <64037729+Jon-Becker@users.noreply.github.com> Date: Wed, 1 Jun 2022 09:16:39 -0400 Subject: [PATCH] Update renoun.sol --- src/contracts/renoun.sol | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/contracts/renoun.sol b/src/contracts/renoun.sol index 2119bd0..7d0aa2c 100644 --- a/src/contracts/renoun.sol +++ b/src/contracts/renoun.sol @@ -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 @@ -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, @@ -150,8 +155,8 @@ contract Renoun is ERC721 { _commitHash, repositoryOwner, repositoryName, - _repositoryStars, - _repositoryContributors + repositoryStars, + repositoryContributors ); totalSupply++; _ownership[totalSupply] = _to;