Skip to content

Commit

Permalink
misc: Rearranged variable ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed Apr 1, 2022
1 parent a1fb1a6 commit 03a17e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/core/modules/collect/FeeCollectModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import {IERC721} from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
* @notice A struct containing the necessary data to execute collect actions on a publication.
*
* @param amount The collecting cost associated with this publication.
* @param recipient The recipient address associated with this publication.
* @param currency The currency associated with this publication.
* @param recipient The recipient address associated with this publication.
* @param referralFee The referral fee associated with this publication.
* @param followerOnly Whether only followers should be able to collect.
*/
struct ProfilePublicationData {
uint256 amount;
address recipient;
address currency;
address recipient;
uint16 referralFee;
bool followerOnly;
}
Expand Down Expand Up @@ -79,8 +79,8 @@ contract FeeCollectModule is ICollectModule, FeeModuleBase, FollowValidationModu
) revert Errors.InitParamsInvalid();

_dataByPublicationByProfile[profileId][pubId].amount = amount;
_dataByPublicationByProfile[profileId][pubId].recipient = recipient;
_dataByPublicationByProfile[profileId][pubId].currency = currency;
_dataByPublicationByProfile[profileId][pubId].recipient = recipient;
_dataByPublicationByProfile[profileId][pubId].referralFee = referralFee;
_dataByPublicationByProfile[profileId][pubId].followerOnly = followerOnly;

Expand Down
6 changes: 3 additions & 3 deletions contracts/core/modules/collect/LimitedFeeCollectModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ import {IERC721} from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
* @param collectLimit The maximum number of collects for this publication.
* @param currentCollects The current number of collects for this publication.
* @param amount The collecting cost associated with this publication.
* @param recipient The recipient address associated with this publication.
* @param currency The currency associated with this publication.
* @param recipient The recipient address associated with this publication.
* @param referralFee The referral fee associated with this publication.
* @param followerOnly Whether only followers should be able to collect.
*/
struct ProfilePublicationData {
uint256 collectLimit;
uint256 currentCollects;
uint256 amount;
address recipient;
address currency;
address recipient;
uint16 referralFee;
bool followerOnly;
}
Expand Down Expand Up @@ -85,8 +85,8 @@ contract LimitedFeeCollectModule is ICollectModule, FeeModuleBase, FollowValidat

_dataByPublicationByProfile[profileId][pubId].collectLimit = collectLimit;
_dataByPublicationByProfile[profileId][pubId].amount = amount;
_dataByPublicationByProfile[profileId][pubId].recipient = recipient;
_dataByPublicationByProfile[profileId][pubId].currency = currency;
_dataByPublicationByProfile[profileId][pubId].recipient = recipient;
_dataByPublicationByProfile[profileId][pubId].referralFee = referralFee;
_dataByPublicationByProfile[profileId][pubId].followerOnly = followerOnly;

Expand Down

0 comments on commit 03a17e5

Please sign in to comment.