Skip to content

Commit

Permalink
btc
Browse files Browse the repository at this point in the history
  • Loading branch information
nalinbhardwaj committed Nov 15, 2024
1 parent df43dea commit fc69bea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/daimo-common/src/eAccount.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Locale } from "expo-localization";
import { Address } from "viem";
import z from "zod";

import { i18n } from "./i18n";
Expand Down Expand Up @@ -39,7 +38,7 @@ export function getEAccountStr(eAccount: EAccount): string {
return eAccount.addr;
}

export function getAddressContraction(address: Address, length = 4): string {
export function getAddressContraction(address: string, length = 4): string {
return address.slice(0, 2 + length) + "…" + address.slice(-length);
}

Expand Down

0 comments on commit fc69bea

Please sign in to comment.