Skip to content

Commit

Permalink
chore: rename BN to BN4
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 29, 2024
1 parent 57e3ca8 commit 8e0211d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/UI/Ramp/hooks/useIntentAmount.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect } from 'react';
import type BN from 'bnjs4';
import type BN4 from 'bnjs4';
import { useRampSDK } from '../sdk';
import parseAmount from '../utils/parseAmount';
import { toTokenMinimalUnit } from '../../../../util/number';
Expand All @@ -21,7 +21,7 @@ export default function useIntentAmount(
setAmount: (amount: React.SetStateAction<string>) => void,
setAmountNumber: (amount: React.SetStateAction<number>) => void,
setAmountBNMinimalUnit: (
amount: React.SetStateAction<BN | undefined>,
amount: React.SetStateAction<BN4 | undefined>,
) => void,
currentFiatCurrency: FiatCurrency | null,
) {
Expand Down Expand Up @@ -53,7 +53,7 @@ export default function useIntentAmount(
toTokenMinimalUnit(
`${parsedAmount}`,
selectedAsset?.decimals ?? 0,
) as BN,
) as BN4,
);
}
}
Expand Down

0 comments on commit 8e0211d

Please sign in to comment.