Skip to content

Allow eth_estimateUserOperationGas to pass in validateUserOp #77

@jimmychu0807

Description

@jimmychu0807

Here is tenderly simulation:
https://dashboard.tenderly.co/shared/simulation/09d25a44-a765-44d1-b618-d79845452a8e

This is the data

{
  "id": 96,
  "method": "eth_estimateUserOperationGas",
  "params": [
    {
      "nonce": "0xbc564d498efa954eeb1169066d6ad1f82cc2a37b000000000000000000000004",
      "sender": "0x630dF3c09b72E348d8C196BfCAD1872E1f2399Cf",
      "factory": null,
      "callData": "0xe9ae5c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000027858265b1deb6290a092a3b01da1d96475c012d8f400000000000000000000000000000000000000000000000000000000000000000294468e000000000000000000000000b0fd5a878dbf3f9358a251caf9b6fc692a999ca700000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000012190c0f33b562547013a04e5ce156c5059097f31c3c3a318c330f616a1f8e49b2509c45ece47b7b4327ac6b0dd98cd4b51f786daa1c53dd7c3101e3ea51ce055617070726f766500000000000000000000000000000000000000000000000000fdf86a53c17b3d4bc567baa305157ea4374873be7483ff4f7dcbda1c3503547021db9ea35f1a61871d1b5605e91bd5eac87a84cbd664e81d3d322a3db97fc74d01781e2af89c411909fa0c7b86380fa4892493b6dff29ef77845184380a711020fa9e0aacb96a9f213c8e479f82e6b9abc68c6313bcd74e5736cd07b90cdbe5a243f97f60092dcbe433d016dc91727542e8c9259b4e1e5edb809217de0bc9c9726db64749fc41aa8f8604cfbbf1d92456eaf7ab7729516b6e8dfde9f13093a5d06f66dcf5a6e7e216c779e238769f138d266079868c1026d4c0a8844aa8da61617474755aded268a58e5e1bda39346d22fc8f39c58004167d8329fc392c38a25279fc08d5f5b85b4582b0f8df1cb516b01120f412d60c4e03fa3d2d134e21826000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "paymaster": "0x777777777777AeC03fd955926DbF81597e66834C",
      "signature": "0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
      "factoryData": null,
      "callGasLimit": "0x1e8480",
      "maxFeePerGas": "0x10cac8",
      "paymasterData": "0x01000000000000000000000000cd91f19f0f19ce862d7bec7b7d9b95457145afc6f639c28fd0360f488937bfa41e6eedcd3a46054fd95fcd0e3ef6b0bc0a615c4d975eef55c8a3517257904d5b1c",
      "preVerificationGas": "0x493e0",
      "maxPriorityFeePerGas": "0x10c8e0",
      "verificationGasLimit": "0x5b8d80",
      "paymasterPostOpGasLimit": "0x1",
      "paymasterVerificationGasLimit": "0x0"
    },
    "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
  ],
  "jsonrpc": "2.0"
}

The signature passed is 0xffff... which will not be accepted by SemaphoreValidator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions