Skip to content

Commit

Permalink
remove anonymous from post metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Feb 8, 2024
1 parent f1fddd9 commit 1438fd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions contracts/post/IggyPostMetadata.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ contract IggyPostMetadata is OwnableWithManagers {
string memory hue = _randomHueNum(_tokenId).toString();
string memory authorName = IBasePunkTLD(tldAddress).defaultNames(_author);

if (bytes(authorName).length == 0) {
authorName = "Anonymous";
} else {
if (bytes(authorName).length > 0) {
authorName = string(abi.encodePacked(authorName, IBasePunkTLD(tldAddress).name()));
}

Expand Down
4 changes: 1 addition & 3 deletions contracts/post/IggyPostMetadataStaticColor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ contract IggyPostMetadataStaticColor is OwnableWithManagers {
function _getImage(string memory _textPreview, address _author) internal view returns (string memory) {
string memory authorName = IBasePunkTLD(tldAddress).defaultNames(_author);

if (bytes(authorName).length == 0) {
authorName = "Anonymous";
} else {
if (bytes(authorName).length > 0) {
authorName = string(abi.encodePacked(authorName, IBasePunkTLD(tldAddress).name()));
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/swap/IggySwapRouter.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

const contractName = "IggySwapRouter";

const iggyAddress = ""; // mandatory (distributor)
const routerAddress = ""; // mandatory
const iggyAddress = "0x20aeB41bCfaFb05b580dB2f687123eDa605315Ed"; // mandatory (distributor)
const routerAddress = "0x082C1E810B6518a65ae61d9C07dc25d9ffe61Ae6"; // mandatory
const frontendAddress = ethers.constants.AddressZero; // optional
const stakingAddress = ethers.constants.AddressZero; // optional
const statsAddress = ""; // stats middleware address (optional)
const statsAddress = "0xb29e981343daa6ea18D58cdB0800DFE962aA53e4"; // stats middleware address (optional)
const sfsNftTokenId = 286; // TODO: Enter SFS NFT token ID!!!

const swapFee = 80; // 0.8%
Expand Down

0 comments on commit 1438fd0

Please sign in to comment.