Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nlecoufl committed Dec 4, 2024
1 parent a77536a commit 0fb393b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/DistributionCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ contract DistributionCreator is UUPSHelper, ReentrancyGuardUpgradeable {
function _createCampaign(CampaignParameters memory newCampaign) internal returns (bytes32) {
uint256 rewardTokenMinAmount = rewardTokenMinAmounts[newCampaign.rewardToken];
// if epoch parameters lead to a past campaign
if (newCampaign.startTimestamp < block.timestamp) revert Errors.CampaignSouldStartInFuture();
if (newCampaign.startTimestamp < block.timestamp) revert Errors.CampaignShouldStartInFuture();
// if the campaign doesn't last at least one hour
if (newCampaign.duration < HOUR) revert Errors.CampaignDurationBelowHour();
// if the reward token is not whitelisted as an incentive token
Expand Down
2 changes: 1 addition & 1 deletion contracts/utils/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ library Errors {
error CampaignDurationBelowHour();
error CampaignRewardTokenNotWhitelisted();
error CampaignRewardTooLow();
error CampaignSouldStartInFuture();
error CampaignShouldStartInFuture();
error InvalidDispute();
error InvalidLengths();
error InvalidParam();
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ skale = { chainId = 2046399126, key = "${SKALE_ETHERSCAN_API_KEY}", url = "https
worldchain = { chainId = 480, key = "${WORLDCHAIN_ETHERSCAN_API_KEY}", url = "https://worldchain-mainnet.explorer.alchemy.com/api" }
lisk = { chainId = 1135, key = "${LISK_ETHERSCAN_API_KEY}", url = "https://blockscout.lisk.com/api/" }
etherlink = { chainId = 42793, key = "${ETHERLINK_ETHERSCAN_API_KEY}", url= "https://explorer.etherlink.com/api" }
arthera = { chainId = 10242, key = "${ARTHERA_ETHERSCAN_API_KEY}", url = "https://rpc.arthura.io" }
arthera = { chainId = 10242, key = "${ARTHERA_ETHERSCAN_API_KEY}", url = "https://explorer.arthera.net/api/ }
swell = { chainId = 1923, key = "${SWELL_ETHERSCAN_API_KEY}", url = "https://explorer.swellnetwork.io:443/api/" }
8 changes: 4 additions & 4 deletions test/unit/DistributionCreator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ contract Test_DistributionCreator_Initialize is DistributionCreatorTest {
}

contract Test_DistributionCreator_CreateDistribution is DistributionCreatorTest {
function test_RevertWhen_CampaignSouldStartInFuture() public {
function test_RevertWhen_CampaignShouldStartInFuture() public {
DistributionParameters memory distribution = DistributionParameters({
uniV3Pool: address(pool),
rewardToken: address(angle),
Expand All @@ -144,7 +144,7 @@ contract Test_DistributionCreator_CreateDistribution is DistributionCreatorTest
rewardId: keccak256("TEST"),
additionalData: hex""
});
vm.expectRevert(Errors.CampaignSouldStartInFuture.selector);
vm.expectRevert(Errors.CampaignShouldStartInFuture.selector);
creator.createDistribution(distribution);
}

Expand Down Expand Up @@ -355,7 +355,7 @@ contract Test_DistributionCreator_CreateDistributions is DistributionCreatorTest
}

contract Test_DistributionCreator_CreateCampaign is DistributionCreatorTest {
function test_RevertWhen_CampaignSouldStartInFuture() public {
function test_RevertWhen_CampaignShouldStartInFuture() public {
CampaignParameters memory campaign = CampaignParameters({
campaignId: keccak256("TEST"),
creator: address(0),
Expand All @@ -366,7 +366,7 @@ contract Test_DistributionCreator_CreateCampaign is DistributionCreatorTest {
startTimestamp: uint32(block.timestamp - 1),
duration: 3600
});
vm.expectRevert(Errors.CampaignSouldStartInFuture.selector);
vm.expectRevert(Errors.CampaignShouldStartInFuture.selector);
creator.createCampaign(campaign);
}

Expand Down

0 comments on commit 0fb393b

Please sign in to comment.