Skip to content

Commit c6da540

Browse files
committed
fix: update rlcToNrlc function to support bigint input and return type
1 parent 2151b43 commit c6da540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/rlcToNrlc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export function rlcToNrlc(rlcValue: number) {
2-
return rlcValue * 10 ** 9;
1+
export function rlcToNrlc(rlcValue: number | bigint): bigint {
2+
return BigInt(rlcValue) * 10n ** 9n;
33
}

0 commit comments

Comments
 (0)