@@ -8,7 +8,6 @@ import "./NFTRenderer.sol";
8
8
import "@openzeppelin/contracts/utils/Strings.sol " ;
9
9
10
10
address payable constant SCHEMA_RESOLVER = payable (0x63FD503800a89280EA1319c7B59E6aa419161aAB );
11
- // address payable constant SCHEMA_RESOLVER = payable(0xEf00E7be55ff65Ad3F8305B042D44b96b05862D8);
12
11
address payable constant GITHUB_RESOLVER = payable (0x6455E470f9Ecee5755930c9979b559768BF53170 );
13
12
14
13
contract DevNFTRenderer is NFTRenderer {
@@ -27,12 +26,12 @@ contract DevNFTRenderer is NFTRenderer {
27
26
}
28
27
29
28
function isEligibleToMint (address tokenOwner , string memory repository ) public view returns (bool ) {
30
- (uint256 totalAttestations ,,,) = getAttestationInformations (tokenOwner, repository);
29
+ (uint256 totalAttestations ,,,) = getAttestationInfo (tokenOwner, repository);
31
30
return (totalAttestations > 0 );
32
31
}
33
32
34
33
function formatTokenURI (address tokenOwner , string memory nftName , string memory repository , uint256 tokenId ) public view returns (string memory ) {
35
- (, DevSchemaResolver.AttestationData[] memory attestations ,,) = getAttestationInformations (tokenOwner, repository);
34
+ (, DevSchemaResolver.AttestationData[] memory attestations ,,) = getAttestationInfo (tokenOwner, repository);
36
35
string memory contributor = getGithubUsername (tokenOwner);
37
36
string memory attributesJson = getAttributes (attestations);
38
37
string memory encodedNftName = string (abi.encodePacked (nftName, " # " , Strings.toString (tokenId * 1 )));
@@ -91,7 +90,7 @@ contract DevNFTRenderer is NFTRenderer {
91
90
}
92
91
93
92
94
- function getAttestationInformations (address tokenOwner , string memory repository )
93
+ function getAttestationInfo (address tokenOwner , string memory repository )
95
94
private view
96
95
returns (uint256 , DevSchemaResolver.AttestationData[] memory , uint256 , uint256 ) {
97
96
string memory githubUsername = getGithubUsername (tokenOwner);
@@ -102,7 +101,7 @@ contract DevNFTRenderer is NFTRenderer {
102
101
103
102
function imageURI (address tokenOwner , string memory repository ) public view returns (string memory ) {
104
103
string memory username = getGithubUsername (tokenOwner);
105
- (uint256 prCount , ,uint256 additions , uint256 deletions ) = getAttestationInformations (tokenOwner, repository);
104
+ (uint256 prCount , ,uint256 additions , uint256 deletions ) = getAttestationInfo (tokenOwner, repository);
106
105
107
106
string memory background = generateBackground (prCount);
108
107
string memory avatar = generateAvatar (prCount);
0 commit comments