alchemyplatform / rundler

An ERC-4337 Bundler in Rust
GNU Lesser General Public License v3.0
268 stars 39 forks source link

Alternative mempool doesn't bypass -32502 error. #808

Open Dmytro-Kholodov opened 1 week ago

Dmytro-Kholodov commented 1 week ago

Describe the bug Alternative mempool doesn't bypass -32502 error.

To reproduce

  1. Create mempool entry:

    {
    "0x0000000000000000000000000000000000000000000000000000000000000000": {
    "description": "MultiOwnerModularAccount factory whitelist - BSC",
    "chainIds": ["0x38"],
    "allowlist": [
    {
      "description": "Multi Owner Plugin slot",
      "rule": "invalidStorageAccess",
      "entity": "0x000000e92D78D90000007F0082006FDA09BD5f11",
      "contract": "0xce0000007b008f50d762d155002600004cd6c647",
      "slot": "0x3a07c839996248dd4c2e5a349d97b6764175fdaa94693ef9c9852c7588e5f000"
    },
    {
      "description": "MultiOwnerModularAccount factory",
      "rule": "notStaked",
      "entity": "0x000000e92D78D90000007F0082006FDA09BD5f11"
    }
    ],
    "entryPoint": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
    }
    }
  2. For mempool configs use --mempool_config_path or MEMPOOL_CONFIG_PATH.

  3. Start rundler

Expected behavior I am able to send UO to create a new AA wallet. However, I get -32502.

Logs

"code": -32502,
message": "Sender storage at (address: 0xce0000007b008f50d762d155002600004cd6c647 slot: 0x3a07c839996248dd4c2e5a349d97b6764175fdaa94693ef9c9852c7588e5f000) accessed during deployment. Factory (or None) must be staked"

Additional context Rundler starts without errors in a docker container. Bundler config is mounted to the container.