etherspot / skandha

A modular typescript implementation of ERC4337 (Account Abstraction) bundler client.
https://etherspot.io
MIT License
560 stars 50 forks source link

BUG: Skandha shouldn't remove UserOp from local mempool in case of on-chain revert. #124

Closed ch4r10t33r closed 9 months ago

ch4r10t33r commented 9 months ago

Describe the bug

Skandha presently doesn't reprocess a UserOp in case of an on-chain failure. This is incorrect.

Expected behavior

The submitted UserOp should be deleted from the local mempool only after listening to a successful UserOpEvent from the EntryPointContract.

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Skandha version or commit hash

v1.0.24-alpha