Skip to content

Commit

Permalink
fix bignumber comparison (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Forshtat <[email protected]>
  • Loading branch information
0xSulpiride and forshtat authored Sep 11, 2023
1 parent 30dc20d commit a5d2c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bundler/src/UserOpMethodHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export class UserOpMethodHandler {
})
validAfter = BigNumber.from(validAfter)
validUntil = BigNumber.from(validUntil)
if (validUntil === BigNumber.from(0)) {
if ((validUntil as BigNumber).eq(0)) {
validUntil = undefined
}
if (validAfter === BigNumber.from(0)) {
if ((validAfter as BigNumber).eq(0)) {
validAfter = undefined
}
const preVerificationGas = calcPreVerificationGas(userOp)
Expand Down

0 comments on commit a5d2c0f

Please sign in to comment.