From db31df05947b4f80353f593471e973394d2995d0 Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Tue, 8 Nov 2022 16:42:40 -0800 Subject: [PATCH] Fix tests --- src/snarky.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snarky.d.ts b/src/snarky.d.ts index 20d4fe8e4f..006f491af9 100644 --- a/src/snarky.d.ts +++ b/src/snarky.d.ts @@ -358,7 +358,7 @@ declare class Field { */ static toJSON(x: Field): string; - static fromJSON(x: string): Field; + static fromJSON(x: string | number): Field; static check(x: Field): void; @@ -635,7 +635,7 @@ declare class Scalar { static random(): Scalar; static toJSON(x: Scalar): string; - static fromJSON(x: string): Scalar; + static fromJSON(x: string | number): Scalar; static check(x: Scalar): void; }