Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Nov 25, 2024
1 parent cfedc5b commit be70fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/formatBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const formatBalance = (
}: FormatBalanceArgs = {},
) => {
let actual = formatEther(balance);
// formatEther from viem returns without '.0'
// the 'formatEther' from 'viem' returns without '.0' - decimals part (if the number is greater than 0 and does not have a decimal part)
if (!actual.includes('.')) {
actual += '.0';
}
Expand Down

0 comments on commit be70fee

Please sign in to comment.