Skip to content

Commit

Permalink
feat: u128.ts accepting string on input (#11664)
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan authored Feb 2, 2025
1 parent 391c756 commit bb25992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/abi/u128.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit bb25992

Please sign in to comment.