Skip to content

Commit aa6e245

Browse files
committed
Add check on bigInt for neo-expect
1 parent 49c2ed5 commit aa6e245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/graphql/tests/utils/neo-expect/neo-expect.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ export abstract class NeoExpect {
7575

7676
private parseRawValue(value: unknown): any {
7777
if (isNeoInt(value)) {
78+
if (!value.inSafeRange()) {
79+
throw new Error("Big Int not supported in neo-expect");
80+
}
7881
return value.toNumber();
7982
}
8083

0 commit comments

Comments
 (0)