diff --git a/src/sdk/clients/createNexusSessionClient.test.ts b/src/sdk/clients/createNexusSessionClient.test.ts index ebfaf48e..b63c1b6c 100644 --- a/src/sdk/clients/createNexusSessionClient.test.ts +++ b/src/sdk/clients/createNexusSessionClient.test.ts @@ -44,7 +44,7 @@ describe("nexus.session.client", async () => { let nexusAccountAddress: Address let sessionKeyAccount: LocalAccount let sessionPublicKey: Address - let stringifiedSessionData: string + let cachedSessionData: string let sessionsModule: Module @@ -155,7 +155,7 @@ describe("nexus.session.client", async () => { } } - stringifiedSessionData = stringify(sessionData) + cachedSessionData = stringify(sessionData) const receipt = await nexusClient.waitForUserOperationReceipt({ hash: createSessionsResponse.userOpHash @@ -172,7 +172,7 @@ describe("nexus.session.client", async () => { }, 60000) test("session signer should use session to increment a counter for a user (USE MODE)", async () => { - const sessionData = parse(stringifiedSessionData) as SessionData + const sessionData = parse(cachedSessionData) as SessionData const counterBefore = await testClient.readContract({ address: testAddresses.Counter, @@ -229,7 +229,7 @@ describe("nexus.session.client", async () => { }, 60000) test("session signer is not allowed to send unauthorised action", async () => { - const sessionData = parse(stringifiedSessionData) as SessionData + const sessionData = parse(cachedSessionData) as SessionData const usePermissionsModule = toSmartSessionsValidator({ account: nexusClient.account, diff --git a/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.test.ts b/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.test.ts index c09ad2d1..d0cddf17 100644 --- a/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.test.ts +++ b/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.test.ts @@ -48,7 +48,7 @@ describe("modules.smartSessions", async () => { let testClient: MasterClient let eoaAccount: LocalAccount let nexusClient: NexusClient - let stringifiedSessionData: string // Session data to be stored by the dApp + let cachedSessionData: string // Session data to be stored by the dApp let sessionKeyAccount: LocalAccount let sessionPublicKey: Address @@ -261,7 +261,7 @@ describe("modules.smartSessions", async () => { } } - stringifiedSessionData = stringify(sessionData) + cachedSessionData = stringify(sessionData) const receipt = await nexusClient.waitForUserOperationReceipt({ hash: createSessionsResponse.userOpHash @@ -277,7 +277,7 @@ describe("modules.smartSessions", async () => { functionName: "getNumber" }) - const parsedSessionData = parse(stringifiedSessionData) as SessionData + const parsedSessionData = parse(cachedSessionData) as SessionData const smartSessionNexusClient = await createNexusSessionClient({ chain, diff --git a/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.uni.policy.test.ts b/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.uni.policy.test.ts index 02e98be6..f27611df 100644 --- a/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.uni.policy.test.ts +++ b/src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.uni.policy.test.ts @@ -50,7 +50,7 @@ describe("modules.smartSessions.uni.policy", async () => { let nexusAccountAddress: Address let sessionKeyAccount: LocalAccount let sessionPublicKey: Address - let stringifiedSessionData: string + let cachedSessionData: string let sessionsModule: Module @@ -237,7 +237,7 @@ describe("modules.smartSessions.uni.policy", async () => { } } - stringifiedSessionData = stringify(sessionData) + cachedSessionData = stringify(sessionData) const receipt = await nexusClient.waitForUserOperationReceipt({ hash: createSessionsResponse.userOpHash @@ -254,7 +254,7 @@ describe("modules.smartSessions.uni.policy", async () => { }, 200000) test("should make use of already enabled session (USE mode) to add balance to MockCallee using a session key", async () => { - const parsedSessionData = parse(stringifiedSessionData) as SessionData + const parsedSessionData = parse(cachedSessionData) as SessionData const isEnabled = await isPermissionEnabled({ client: nexusClient.account.client as PublicClient,