Skip to content

Commit 7215c9e

Browse files
hellwolfcrStiv
andauthored
forge-std: v1.9.1 -> v1.10.0 (#2098)
* forge-std: v1.9.1 -> v1.10.0 * fix automation contracts --------- fix: multiple typos of different importance #2095 Co-authored-by: crStiv <cryptostiv7@gmail.com>
1 parent 264d158 commit 7215c9e

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

packages/automation-contracts/autowrap/test/Manager.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ contract ManagerTests is FoundrySuperfluidTester {
8989
new Manager(address(sf.cfa), 2, 1);
9090
}
9191

92-
function testDeploymentCheckData() public {
92+
function testDeploymentCheckData() public view {
9393
assertEq(address(manager.cfaV1()), address(sf.cfa), "manager.cfaV1 not equal");
9494
assertEq(manager.owner(), admin, "manager.owner not equal");
9595
assertEq(manager.minLower(), MIN_LOWER, "manager.minLower not equal");

packages/automation-contracts/autowrap/test/WrapStrategy.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ contract WrapStrategyTests is FoundrySuperfluidTester {
9393

9494
// SuperToken
9595

96-
function testSupportedSuperToken() public {
96+
function testSupportedSuperToken() public view {
9797
assertTrue(
9898
wrapStrategy.isSupportedSuperToken(superToken),
9999
"SuperToken should be supported"
100100
);
101101
}
102102

103-
function testCannotNonSupportedSuperToken() public {
103+
function testCannotNonSupportedSuperToken() public view {
104104
assertTrue(
105105
!wrapStrategy.isSupportedSuperToken(nativeSuperToken),
106106
"Native SuperToken shouldn't be supported"

packages/automation-contracts/scheduler/contracts/VestingSchedulerV2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ contract VestingSchedulerV2 is IVestingSchedulerV2, SuperAppBase {
441441
if (!disableClaimCheck && schedule.claimValidityDate != 0)
442442
revert ScheduleNotClaimed();
443443

444-
// Ensure that the claming date is after the cliff/flow date and before the claim validity date
444+
// Ensure that the claiming date is after the cliff/flow date and before the claim validity date
445445
if (schedule.cliffAndFlowDate > block.timestamp ||
446446
_lteDateToExecuteCliffAndFlow(schedule) < block.timestamp)
447447
revert TimeWindowInvalid();

packages/automation-contracts/scheduler/contracts/VestingSchedulerV3.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using SuperTokenV1Library for ISuperToken;
3232
* The contract uses ERC-20 allowance and Superfluid ACL flow operator permissions
3333
* to automate the vesting on behalf of the sender.
3434
* The contract is designed to be used with an off-chain automation to execute the vesting start and end.
35-
* The start and end executions are permisionless.
35+
* The start and end executions are permissionless.
3636
* Execution delays are handled with token transfer compensations, but watch out for complete expiries!
3737
* @custom:metadata The official addresses and subgraphs can be found from @superfluid-finance/metadata package.
3838
*/
@@ -760,7 +760,7 @@ contract VestingSchedulerV3 is IVestingSchedulerV3, IRelayRecipient {
760760
revert ScheduleNotClaimed();
761761
}
762762

763-
// Ensure that the claming date is after the cliff/flow date and before the claim validity date
763+
// Ensure that the claiming date is after the cliff/flow date and before the claim validity date
764764
if (schedule.cliffAndFlowDate > block.timestamp || _lteDateToExecuteCliffAndFlow(schedule) < block.timestamp) {
765765
revert TimeWindowInvalid();
766766
}

packages/automation-contracts/scheduler/test/FlowScheduler.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ contract FlowSchedulerTest is FoundrySuperfluidTester {
5050
bytes userData
5151
);
5252

53-
/// @dev This is required by solidity for using the SupertTokenV1Library in the tester
53+
/// @dev This is required by solidity for using the SuperTokenV1Library in the tester
5454
using SuperTokenV1Library for SuperToken;
5555
constructor() FoundrySuperfluidTester(3) {}
5656
FlowScheduler internal flowScheduler;
@@ -232,7 +232,7 @@ contract FlowSchedulerTest is FoundrySuperfluidTester {
232232
superToken, alice, defaultStartDate, uint32(1000), int96(1000), defaultStartAmount, defaultStartDate + uint32(3600), "", ""
233233
);
234234

235-
vm.expectRevert(0xa3eab6ac); // error CFA_ACL_OPERATOR_NO_CREATE_PERMISSIONS() -> 0xa3eab6ac
235+
vm.expectRevert(bytes4(0xa3eab6ac)); // error CFA_ACL_OPERATOR_NO_CREATE_PERMISSIONS() -> 0xa3eab6ac
236236
vm.warp(defaultStartDate + 1000);
237237
vm.prank(admin);
238238
flowScheduler.executeCreateFlow(superToken, bob,alice,"");

packages/automation-contracts/scheduler/test/FlowSchedulerResolver.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ contract FlowSchedulerResolverTest is FoundrySuperfluidTester {
350350
expectUnexecutable();
351351
}
352352

353-
function testDeleteNonExistantStreamAfterEndDate() public {
353+
function testDeleteNonExistentStreamAfterEndDate() public {
354354
vm.startPrank(alice);
355355

356356
uint32 defaultEndDate = defaultStartDate + uint32(3600);

packages/automation-contracts/scheduler/test/VestingSchedulerV2.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ contract VestingSchedulerV2Tests is FoundrySuperfluidTester {
200200
address superToken,
201201
address sender,
202202
address receiver
203-
) public {
203+
) public view {
204204
VestingSchedulerV2.VestingSchedule memory schedule = vestingScheduler.getVestingSchedule(superToken, sender, receiver);
205205
VestingSchedulerV2.VestingSchedule memory deletedSchedule;
206206

@@ -2418,7 +2418,7 @@ contract VestingSchedulerV2Tests is FoundrySuperfluidTester {
24182418

24192419
uint32 newEndDate = type(uint32).max - 1234;
24202420

2421-
// Setting up a batch call. Superfluid Protocol will replace the emtpy context with data about the sender. That's where the sender is retrieved from.
2421+
// Setting up a batch call. Superfluid Protocol will replace the empty context with data about the sender. That's where the sender is retrieved from.
24222422
ISuperfluid.Operation[] memory ops = new ISuperfluid.Operation[](1);
24232423
ops[0] = ISuperfluid.Operation({
24242424
operationType: BatchOperation.OPERATION_TYPE_SUPERFLUID_CALL_APP_ACTION,

packages/ethereum-contracts/test/contracts/agreements/InstantDistributionAgreementV1-Non-Callback.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("IDAv1 | Non-Callback Tests", function () {
117117
);
118118
});
119119

120-
it("#1.1.3 publisher should fail to query non-existant index", async () => {
120+
it("#1.1.3 publisher should fail to query non-existent index", async () => {
121121
const idata = await t.contracts.ida.getIndex(
122122
superToken.address,
123123
alice,

0 commit comments

Comments
 (0)