pimlicolabs / permissionless.js

TypeScript utilities built on viem for ERC-4337: Account Abstraction

Home Page:https://docs.pimlico.io/permissionless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigInt literals are not available when targeting lower than ES2020

ivpusic opened this issue · comments

Hi,

It would be cool if you can convert bigint literals to BigInt() form, so targets lower than ES2020 are supported.

Example:

const multiplier = userOperation.paymasterAndData.length > 2 ? 3n : 1n

can be converted to:

const multiplier = userOperation.paymasterAndData.length > 2 ? BigInt(3) : BigInt(1)

Fixed, Thanks for this!

Released fix in permissionless@0.1.17