From 87b4feab0765a0093bd69854fd5cb947bee27bd3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 3 Apr 2024 17:51:48 +0200 Subject: [PATCH] Remove unnecessary wait(), change tag in test --- .../test/userStories/createSafeWithPasskeySignerAsOwner.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/passkey/test/userStories/createSafeWithPasskeySignerAsOwner.ts b/modules/passkey/test/userStories/createSafeWithPasskeySignerAsOwner.ts index f402554c..22de5488 100644 --- a/modules/passkey/test/userStories/createSafeWithPasskeySignerAsOwner.ts +++ b/modules/passkey/test/userStories/createSafeWithPasskeySignerAsOwner.ts @@ -14,7 +14,7 @@ import { buildSignatureBytes } from '@safe-global/safe-4337/src/utils/execution' * Step 2: Create a userOp, sign it with Passkey signer. * Step 3: Execute the userOp that deploys a safe with passkey signer as owner. */ -describe('Create a Safe with Passkey signer as owner: [@User story]', () => { +describe('Create a Safe with Passkey signer as owner: [@userstory]', () => { // Create a fixture to setup the contracts and signer(s) const setupTests = deployments.createFixture(async ({ deployments }) => { const { EntryPoint, Safe4337Module, SafeProxyFactory, SafeModuleSetup, SafeL2, FCLP256Verifier, WebAuthnSignerFactory } = @@ -148,12 +148,12 @@ describe('Create a Safe with Passkey signer as owner: [@User story]', () => { packedUserOp.signature = ethers.solidityPacked(['uint48', 'uint48', 'bytes'], [safeOp.validAfter, safeOp.validUntil, signature]) // Send 1 ETH to the Safe - await user.sendTransaction({ to: safe, value: ethers.parseEther('1') }).then((tx) => tx.wait()) + await user.sendTransaction({ to: safe, value: ethers.parseEther('1') }) // Check if Safe is not already created expect(await ethers.provider.getCode(safe)).to.equal('0x') // Step 3: Execute the userOp that deploys a safe with passkey signer as owner. - await (await entryPoint.handleOps([packedUserOp], user.address)).wait() + await entryPoint.handleOps([packedUserOp], user.address) // Check if Safe is created and uses the expected Singleton const [implementation] = ethers.AbiCoder.defaultAbiCoder().decode(['address'], await ethers.provider.getStorage(safe, 0))