Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Jul 22, 2024
1 parent c0d1ea3 commit 011f8d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@ describe('entryPointVersion: 0.7', async () => {
}
`)

const userOperation_gas = await estimateUserOperationGas(bundlerClient, {
...userOperation,
...userOperation_paymasterStub,
})
const { preVerificationGas, ...userOperation_gas } =
await estimateUserOperationGas(bundlerClient, {
...userOperation,
...userOperation_paymasterStub,
})
expect(preVerificationGas).toBeDefined()
expect(userOperation_gas).toMatchInlineSnapshot(`
{
"callGasLimit": 80000n,
"paymasterPostOpGasLimit": 0n,
"paymasterVerificationGasLimit": 0n,
"preVerificationGas": 51722n,
"verificationGasLimit": 259060n,
}
`)
Expand All @@ -86,7 +87,7 @@ describe('entryPointVersion: 0.7', async () => {
expect(userOperation_paymaster).toMatchInlineSnapshot(`
{
"paymaster": "0x798f111c92e38f102931f34d1e0ea7e671bdbe31",
"paymasterData": "0x00000000000000000000000000000000000000000000000000000000deadbeef0000000000000000000000000000000000000000000000000000000000001234fe191962d4eea1f3eb3219b5c5cb2a093192510fe5edccc02103efc8cd8d38b85d1e42441c847dffa4187df1217d128628cebeedc8125cad3337c510b63915761b",
"paymasterData": "0x00000000000000000000000000000000000000000000000000000000deadbeef0000000000000000000000000000000000000000000000000000000000001234a528235cb473a447101ea2dbf58dc7150de904bbdac2dce9a7e26cbed67f54a476b98eb24355f3c230e116422618ccfa283a84dec8fcd934cdd1b9dbd0ec00cd1b",
"paymasterPostOpGasLimit": 1000000n,
"paymasterVerificationGasLimit": 1000000n,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ describe('entryPointVersion: 0.7', async () => {
}
`)

const userOperation_gas = await estimateUserOperationGas(bundlerClient, {
...userOperation,
...userOperation_paymaster,
})
const { preVerificationGas, ...userOperation_gas } =
await estimateUserOperationGas(bundlerClient, {
...userOperation,
...userOperation_paymaster,
})
expect(preVerificationGas).toBeDefined()
expect(userOperation_gas).toMatchInlineSnapshot(`
{
"callGasLimit": 80000n,
"paymasterPostOpGasLimit": 0n,
"paymasterVerificationGasLimit": 0n,
"preVerificationGas": 51722n,
"verificationGasLimit": 259060n,
}
`)
Expand Down

0 comments on commit 011f8d7

Please sign in to comment.