Skip to content

Commit

Permalink
feat: update creator
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Jan 10, 2024
1 parent 40a69dd commit 23eed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/DistributionCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ contract DistributionCreator is UUPSHelper, ReentrancyGuardUpgradeable {
(campaignAmountMinusFees, campaignId) = _computeFees(_fees, campaign.amount, campaign.rewardToken);
campaign.amount = campaignAmountMinusFees;
campaign.campaignId = campaignId;
campaign.creator = msg.sender;
if (campaign.creator == address(0)) campaign.creator = msg.sender;
uint256 lookupIndex = campaignList.length;
campaignLookup[campaignId] = lookupIndex;
campaignList.push(campaign);
Expand Down

0 comments on commit 23eed15

Please sign in to comment.