Skip to content

Commit

Permalink
refactor(controller-utils): replace with types for type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Feb 26, 2024
1 parent a794c31 commit 328a61d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/controller-utils/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export function isSafeChainId(chainId: Hex): boolean {
* @param inputBn - BN instance to convert to a hex string.
* @returns A '0x'-prefixed hex string.
*/
// TODO: Replace `any` with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function BNToHex(inputBn: any) {
export function BNToHex(inputBn: BN) {
return add0x(inputBn.toString(16));
}

Expand All @@ -59,9 +57,7 @@ export function BNToHex(inputBn: any) {
* @returns Product of the multiplication.
*/
export function fractionBN(
// TODO: Replace `any` with type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
targetBN: any,
targetBN: BN,
numerator: number | string,
denominator: number | string,
) {
Expand Down

0 comments on commit 328a61d

Please sign in to comment.