From 0fb393b9e0a4062763d0fd5d1a013b258513a6d4 Mon Sep 17 00:00:00 2001 From: Nicolas Lecouflet Date: Wed, 4 Dec 2024 14:35:18 +0100 Subject: [PATCH] fix: typos --- contracts/DistributionCreator.sol | 2 +- contracts/utils/Errors.sol | 2 +- foundry.toml | 2 +- test/unit/DistributionCreator.t.sol | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/DistributionCreator.sol b/contracts/DistributionCreator.sol index 9aab55f..53bb322 100644 --- a/contracts/DistributionCreator.sol +++ b/contracts/DistributionCreator.sol @@ -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 diff --git a/contracts/utils/Errors.sol b/contracts/utils/Errors.sol index a07e41d..6f4883f 100644 --- a/contracts/utils/Errors.sol +++ b/contracts/utils/Errors.sol @@ -8,7 +8,7 @@ library Errors { error CampaignDurationBelowHour(); error CampaignRewardTokenNotWhitelisted(); error CampaignRewardTooLow(); - error CampaignSouldStartInFuture(); + error CampaignShouldStartInFuture(); error InvalidDispute(); error InvalidLengths(); error InvalidParam(); diff --git a/foundry.toml b/foundry.toml index aac9775..dffde8c 100644 --- a/foundry.toml +++ b/foundry.toml @@ -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/" } \ No newline at end of file diff --git a/test/unit/DistributionCreator.t.sol b/test/unit/DistributionCreator.t.sol index 03c3d60..04d5155 100644 --- a/test/unit/DistributionCreator.t.sol +++ b/test/unit/DistributionCreator.t.sol @@ -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), @@ -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); } @@ -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), @@ -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); }