Skip to content

Commit e3251c4

Browse files
committed
fix: use BN from bn.js instead of ethereumjs-util
1 parent 6c031d6 commit e3251c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/helpers/utils/util.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import punycode from 'punycode/punycode';
22
import abi from 'human-standard-token-abi';
33
import BigNumber from 'bignumber.js';
4-
import * as ethUtil from 'ethereumjs-util';
4+
import BN from 'bn.js';
55
import { DateTime } from 'luxon';
66
import {
77
getFormattedIpfsUrl,
@@ -168,10 +168,10 @@ export function isOriginContractAddress(to, sendTokenAddress) {
168168
// Takes wei Hex, returns wei BN, even if input is null
169169
export function numericBalance(balance) {
170170
if (!balance) {
171-
return new ethUtil.BN(0, 16);
171+
return new BN(0, 16);
172172
}
173173
const stripped = stripHexPrefix(balance);
174-
return new ethUtil.BN(stripped, 16);
174+
return new BN(stripped, 16);
175175
}
176176

177177
// Takes hex, returns [beforeDecimal, afterDecimal]

0 commit comments

Comments
 (0)