etherspot / skandha

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

BUG: getUserOperationReceipt returns null when the underlying UserOp bundle has failed on-chain #122

Closed ch4r10t33r closed 5 months ago

ch4r10t33r commented 10 months ago

Describe the bug

eth_getUserOperationReceipt returns null when the underlying UserOp bundle has failed on-chain

Expected behavior

The eth_getUserOperationReceipt call should return the actual data (with the failed transaction receipt)

Steps to reproduce

 await networkInstance.addUserOpsToBatch({ to: recipient.toLowerCase(), value: utils.parseEther(value) })
 await networkInstance.addUserOpsToBatch({ to: recipient.toLowerCase(), value: utils.parseEther(value) })

Submit a multi userop bundle on Klaytn chain and then call getUseropReceipt.

Additional context

Issue is prevelant on Klaytn chain which expects a higher gas limit bundle size.

Operating system

Linux

Skandha version or commit hash

v1.0.24-alpha

0xSulpiride commented 5 months ago

addressed in #175

getUserOpReceipt can't get receipts for failed userops, added a new endpoint for that skandha_userOperationStatus