Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Dec 30, 2024
1 parent 481d1d1 commit 852f3a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ClustersNFTBaseURIRenderer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ contract ClustersNFTBaseURIRenderer is Ownable {

/// @dev Returns the token URI for the given `id`.
function tokenURI(uint256 id) public view returns (string memory) {
string memory baseURI = _baseURI.get();
if (bytes(baseURI).length == 0) return "";
return LibString.replace(baseURI, "{id}", LibString.toString(id));
return LibString.replace(_baseURI.get(), "{id}", LibString.toString(id));
}

/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
Expand Down

0 comments on commit 852f3a6

Please sign in to comment.