Skip to content

Commit 9e5f0cc

Browse files
committed
fix the inferring method for bigint
1 parent 0768fa8 commit 9e5f0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/utils/execute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const pad = (
7373

7474
type Value = boolean | string | number
7575
type ValueWithBigNumber = Value | bigint
76-
const isBigNumber = (data: unknown): data is bigint => data instanceof BigInt
76+
const isBigNumber = (data: unknown): data is bigint => typeof data === 'bigint'
7777
const toString = (data: Readonly<bigint>): string => data.toString()
7878
const toStringObj = (
7979
data: Readonly<Record<string, ValueWithBigNumber>>

0 commit comments

Comments
 (0)