From ea850af0e9d973c621d06fc366669fd24c9db8eb Mon Sep 17 00:00:00 2001 From: livingrockrises <90545960+livingrockrises@users.noreply.github.com> Date: Thu, 14 Dec 2023 06:19:59 +0400 Subject: [PATCH] refactor --- .../biconomy-sponsorship-paymaster-specs.ts | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/test/sponsorship-paymaster/biconomy-sponsorship-paymaster-specs.ts b/test/sponsorship-paymaster/biconomy-sponsorship-paymaster-specs.ts index ce09082..ba83ac9 100644 --- a/test/sponsorship-paymaster/biconomy-sponsorship-paymaster-specs.ts +++ b/test/sponsorship-paymaster/biconomy-sponsorship-paymaster-specs.ts @@ -296,64 +296,6 @@ describe("EntryPoint with VerifyingPaymaster Singleton", function () { expect(feeCollectorBalanceAfter).to.be.equal( paymasterIdBalanceDiff.mul(BigNumber.from(1)).div(BigNumber.from(11)) ); - - // Second transaction same funding id - /* const userOp2 = await fillAndSign( - { - sender: walletAddress, - verificationGasLimit: 200000, - }, - walletOwner, - entryPoint, - "nonce" - ); - - const hash2 = await sponsorshipPaymaster.getHash( - userOp2, - fundingId, - MOCK_VALID_UNTIL, - MOCK_VALID_AFTER, - dynamicMarkup - ); - const sig2 = await offchainSigner.signMessage(arrayify(hash2)); - const userOp3 = await fillAndSign( - { - ...userOp2, - paymasterAndData: hexConcat([ - paymasterAddress, - ethers.utils.defaultAbiCoder.encode( - ["address", "uint48", "uint48", "uint32"], - [fundingId, MOCK_VALID_UNTIL, MOCK_VALID_AFTER, dynamicMarkup] - ), - sig2, - ]), - }, - walletOwner, - entryPoint, - "nonce" - ); - - const signatureWithModuleAddress2 = ethers.utils.defaultAbiCoder.encode( - ["bytes", "address"], - [userOp3.signature, ecdsaModule.address] - ); - userOp3.signature = signatureWithModuleAddress2; - - const tx2 = await entryPoint.handleOps( - [userOp3], - await offchainSigner.getAddress(), - { - type: 2, - maxFeePerGas: userOp3.maxFeePerGas, - maxPriorityFeePerGas: userOp3.maxPriorityFeePerGas, - } - ); - const receipt2 = await tx2.wait(); - console.log( - "effective gas price ", - receipt2.effectiveGasPrice.toString() - ); - console.log("gas used VPM V2 ", receipt2.gasUsed.toString()); */ }); it("succeed with valid signature - second transaction ", async () => {