etherspot / skandha

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

fix: invalid bignumber value - eth_estimateUserOperationGas #168

Closed saqlain1020 closed 2 months ago

saqlain1020 commented 3 months ago

Description

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply

Further comments (optional)

This update will throw Invalid json error, when not supplied with correct params in userop while estimating gas. Before this change bundler was returning Bignumber undefined error when CG, VG , PVG etc was not supplied with the userOp, which made it harder to debug.

0xSulpiride commented 2 months ago

Thanks for reporting the issue! We should keep these fields optional as per the EIP. I investigated the issue and fixed it in this PR - https://github.com/etherspot/skandha/pull/170

@saqlain1020

saqlain1020 commented 2 months ago

@0xSulpiride Understood 👍