Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRohlf committed Oct 15, 2024
1 parent e25cd75 commit 1121f01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/@utils/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export const connectKitTheme = {

export function accountTruncate(
account: string,
begin: number = 6, // Specifies the starting index of the substring to be extracted.
end: number = 38 // Specifies the ending index of the substring to be extracted.
begin: number = 6,
end: number = 38
): string {
if (!account || account === '') return
const middle = account.substring(begin, end)
const truncated = account.replace(middle, '…')
return truncated
return truncated // for example 0xb9A3...941d
}

export async function addTokenToWallet(
Expand Down

0 comments on commit 1121f01

Please sign in to comment.