Skip to content

Commit 18a696b

Browse files
committed
fix(utils): extend input type for formatNearAmount function
1 parent 9424189 commit 18a696b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/nice-nails-remain.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@near-js/utils": patch
3+
"near-api-js": patch
4+
---
5+
6+
Extend input type for `formatNearAmount` function

packages/utils/src/format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ for (
3030
* @returns Value in Ⓝ
3131
*/
3232
export function formatNearAmount(
33-
balance: string,
33+
balance: string | number | bigint,
3434
fracDigits: number = NEAR_NOMINATION_EXP
3535
): string {
3636
let balanceBN = BigInt(balance);

0 commit comments

Comments
 (0)