diff --git a/contracts/core/LensHub.sol b/contracts/core/LensHub.sol index bdb4988..b9fb77e 100644 --- a/contracts/core/LensHub.sol +++ b/contracts/core/LensHub.sol @@ -886,7 +886,7 @@ contract LensHub is ILensHub, LensNFTBase, VersionedInitializable, LensMultiStat _collectModuleWhitelisted, _referenceModuleWhitelisted ); - _profileById[vars.profileId].pubCount++; + ++_profileById[vars.profileId].pubCount; } function _createMirror( diff --git a/contracts/core/modules/collect/LimitedFeeCollectModule.sol b/contracts/core/modules/collect/LimitedFeeCollectModule.sol index 57ff5c5..5d56ac9 100644 --- a/contracts/core/modules/collect/LimitedFeeCollectModule.sol +++ b/contracts/core/modules/collect/LimitedFeeCollectModule.sol @@ -109,7 +109,7 @@ contract LimitedFeeCollectModule is ICollectModule, FeeModuleBase, FollowValidat ) { revert Errors.MintLimitExceeded(); } else { - _dataByPublicationByProfile[profileId][pubId].currentCollects++; + ++_dataByPublicationByProfile[profileId][pubId].currentCollects; if (referrerProfileId == profileId) { _processCollect(collector, profileId, pubId, data); } else { diff --git a/contracts/core/modules/collect/LimitedTimedFeeCollectModule.sol b/contracts/core/modules/collect/LimitedTimedFeeCollectModule.sol index aaf223a..ad7c38e 100644 --- a/contracts/core/modules/collect/LimitedTimedFeeCollectModule.sol +++ b/contracts/core/modules/collect/LimitedTimedFeeCollectModule.sol @@ -120,7 +120,7 @@ contract LimitedTimedFeeCollectModule is ICollectModule, FeeModuleBase, FollowVa ) { revert Errors.MintLimitExceeded(); } else { - _dataByPublicationByProfile[profileId][pubId].currentCollects++; + ++_dataByPublicationByProfile[profileId][pubId].currentCollects; if (referrerProfileId == profileId) { _processCollect(collector, profileId, pubId, data); } else {