Skip to content

Commit

Permalink
feat: update 1271 test
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Dec 6, 2024
1 parent 4588161 commit 4e234a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/e2e/modules/smartSessionsValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export const testSmartSessionsValidator = async ({
expect(receipt.status).toBe('success')
}, 3000000)

it.skip('should return true when checking is valid signature', async () => {
it('should return true when checking is valid signature', async () => {
const signer = privateKeyToAccount(process.env.PRIVATE_KEY as Hex)

const { smartSessions } = getInstallModuleData({ account })
Expand All @@ -550,7 +550,7 @@ export const testSmartSessionsValidator = async ({
})
const userOpHash = keccak256('0xuserOpHash')

const typedData = {
const hashedData = hashTypedData({
domain: {
name: 'SmartSession',
version: '1',
Expand All @@ -572,9 +572,7 @@ export const testSmartSessionsValidator = async ({
verifyingContract: SMART_SESSIONS_ADDRESS,
chainId: sepolia.id,
},
} as const

const hashedData = hashTypedData(typedData)
})

let signature = await signer.signMessage({ message: { raw: hashedData } })

Expand Down

0 comments on commit 4e234a2

Please sign in to comment.