Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Sep 21, 2023
1 parent 484e2a2 commit 55dd038
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ contract BatchedSessionRouter is BaseAuthorizationModule {
uint256 length = sessionData.length;
require(length == destinations.length, "Lengths mismatch");

// TODO: since we do not sign SessionDatas[] , can it somehow be messed with?
// like provide it in the wrong order. => should not work as it will be verified along with the calldata

// iterate over batched operations
for (uint256 i; i < length; ) {
// validate the sessionKey
Expand Down
9 changes: 1 addition & 8 deletions test/module/BatchedSessionRouter.Module.specs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, use } from "chai";
import { expect } from "chai";
import {
enableNewTreeForSmartAccountViaEcdsa,
getERC20SessionKeyParams,
Expand Down Expand Up @@ -458,10 +458,7 @@ describe("SessionKey: Batched Session Router", async () => {
merkleTree,
sessionRouter,
mockProtocol,
mockProtocolSVM,
mockToken,
sessionKeyData2,
leafData2,
} = await setupTests();
const tokenAmountToTransfer = ethers.utils.parseEther("1.7534");

Expand Down Expand Up @@ -801,7 +798,6 @@ describe("SessionKey: Batched Session Router", async () => {
entryPoint,
userSA,
sessionKeyManager,
erc20SessionModule,
sessionKeyData,
leafData,
merkleTree,
Expand All @@ -811,7 +807,6 @@ describe("SessionKey: Batched Session Router", async () => {
mockToken,
sessionKeyData2,
leafData2,
validUntilForMockProtocol,
} = await setupTests();
const tokenAmountToTransfer = ethers.utils.parseEther("1.7534");

Expand Down Expand Up @@ -876,7 +871,6 @@ describe("SessionKey: Batched Session Router", async () => {
userSA,
sessionKeyManager,
erc20SessionModule,
sessionKeyData,
leafData,
merkleTree,
sessionRouter,
Expand All @@ -885,7 +879,6 @@ describe("SessionKey: Batched Session Router", async () => {
mockToken,
sessionKeyData2,
leafData2,
validUntilForMockProtocol,
} = await setupTests();
const tokenAmountToTransfer = ethers.utils.parseEther("1.7534");

Expand Down

0 comments on commit 55dd038

Please sign in to comment.