Skip to content

refactor: ProfileFollowModule revision number logic discarded#128

Merged
Zer0dot merged 2 commits into
mainfrom
refactor/profile-follow-module
May 10, 2022
Merged

refactor: ProfileFollowModule revision number logic discarded#128
Zer0dot merged 2 commits into
mainfrom
refactor/profile-follow-module

Conversation

@donosonaumczuk

Copy link
Copy Markdown
Contributor

No description provided.

/**
* Given two profile IDs tells if the former has already been used to follow the latter.
*/
mapping(uint256 => mapping(uint256 => bool)) public isProfileFollowing;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zer0dot Anticipating your thoughts, maybe you would prefer isFollowingByFollowerProfileIdByFollowedProfieId or something like that here.

I did it this way because I did the mapping public so can be used as getter like isProfileFollowing(followerProfileId, followedProfileId) and in the code looks also clear, plus is only used in one part of the code which is super simple.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I think it's fine!

@Zer0dot Zer0dot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, much simpler.

@Zer0dot
Zer0dot merged commit 18b3f14 into main May 10, 2022
@Zer0dot
Zer0dot deleted the refactor/profile-follow-module branch May 10, 2022 15:05
donosonaumczuk pushed a commit that referenced this pull request Oct 20, 2023
…-collect

Test/fix wrong currency in collect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants