Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 607d9b8

Browse files
committed
fix: utility accepts string instead of BN
1 parent 0884745 commit 607d9b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/constants.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import BigNumber from "bignumber.js";
21
import { satoshisToBitcoins } from "unchained-bitcoin";
32

43
export const DUST_IN_SATOSHIS = 546;
5-
export const DUST_IN_BTC = satoshisToBitcoins(BigNumber(DUST_IN_SATOSHIS));
4+
export const DUST_IN_BTC = satoshisToBitcoins(DUST_IN_SATOSHIS.toString());
65
export const DEFAULT_PREFIX = "m";
76
export const CHANGE_INDEX = "/1";
87
export const DEFAULT_CHANGE_PREFIX = DEFAULT_PREFIX + CHANGE_INDEX;

0 commit comments

Comments
 (0)