Skip to content

Commit

Permalink
convert bignum to number even if its outside limits (#248)
Browse files Browse the repository at this point in the history
* convert bignum to number even if its outside limits
* release 1.0.63
  • Loading branch information
mschneider authored Oct 31, 2024
1 parent 7d2bb05 commit 1b15ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/ts/src/utils/numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function toNum(n: bignum): number {
if (typeof n === 'number') {
target = n;
} else {
target = n.toNumber();
target = n.toString() as any as number;
}
return target;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cks-systems/manifest-sdk",
"version": "0.1.62",
"version": "0.1.63",
"files": [
"dist/",
"README.md",
Expand Down

0 comments on commit 1b15ffa

Please sign in to comment.