From a700d1e7bbccba88fc8e09d080ff48b51af0bcc3 Mon Sep 17 00:00:00 2001 From: benesjan Date: Fri, 31 Jan 2025 19:22:35 +0000 Subject: [PATCH] feat:u128.ts accepting string on input --- yarn-project/foundation/src/abi/u128.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/foundation/src/abi/u128.ts b/yarn-project/foundation/src/abi/u128.ts index 52a157e09698..14fda5848955 100644 --- a/yarn-project/foundation/src/abi/u128.ts +++ b/yarn-project/foundation/src/abi/u128.ts @@ -5,7 +5,7 @@ export class U128 { private readonly value: bigint; constructor(value: bigint | number) { - if (typeof value === 'number') { + if (typeof value !== 'bigint') { value = BigInt(value); }