Skip to content

Commit 0f785a4

Browse files
Remove BigInt.toJSON
1 parent de11ee3 commit 0f785a4

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

tests/functional/resync/source/resync.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ describe<{
136136
it.skip("should be ok with legacy wallets", async ({ syncNode }) => {
137137
// TODO
138138
});
139-
});
139+
});

tests/functional/resync/source/setup.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ import { Worker } from "./worker.js";
99

1010
type PluginOptions = Record<string, any>;
1111

12-
// @ts-ignore
13-
BigInt.prototype.toJSON = function () {
14-
const int = Number.parseInt(this.toString());
15-
return int ?? this.toString();
16-
};
1712

1813
const setupSyncNode = async (dataDirectory: string): Promise<Contracts.Kernel.Application> => {
1914
const app = new Application();

tests/functional/transaction-pool-api/source/setup.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ import { Worker } from "./worker.js";
1010

1111
type PluginOptions = Record<string, any>;
1212

13-
// @ts-ignore
14-
BigInt.prototype.toJSON = function () {
15-
const int = Number.parseInt(this.toString());
16-
return int ?? this.toString();
17-
};
18-
1913
const setup = async (): Promise<Contracts.Kernel.Application> => {
2014
const app = new Application();
2115

0 commit comments

Comments
 (0)