BigInt literals are not available when targeting lower than ES2020
ivpusic opened this issue · comments
Ivan Pusic commented
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)
Kristof Gazso commented
Garvit Khatri commented
Fix - #168
Garvit Khatri commented
Fixed, Thanks for this!
Garvit Khatri commented
Released fix in permissionless@0.1.17