The deployAndFundCampaign function in the NudgeCampaignFactory contract doesnt validate that the initialRewardAmount is greater than zero; potentially allowing campaigns to be created with zero initial funding.
When a campaign is deployed and funded using the deployAndFundCampaign function, there is no check to ensure that initialRewardAmount is greater than zero. This could result in campaigns being created with zero initial rewards, which contradicts the purpose of a funding function.
In NudgeCampaignFactory.sol:
Add a validation check to ensure the initial reward amount is greater than zero:
Also, add the corresponding error definition:
deployAndFundCampaign
