From bd28c5de88e27477ce1c8bbe193f1493ffaf42bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Fern=C3=A1ndez?= <44572727+abefernan@users.noreply.github.com> Date: Thu, 13 Apr 2023 16:29:55 +0200 Subject: [PATCH] Use 5 chars for hash Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com> --- lib/displayHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/displayHelpers.ts b/lib/displayHelpers.ts index 4e7226c..1155cc9 100644 --- a/lib/displayHelpers.ts +++ b/lib/displayHelpers.ts @@ -53,7 +53,7 @@ const printableCoin = (coin: Coin, chainInfo: ChainInfo) => { if (coin.denom.startsWith("ibc/")) { const value = coin.amount; const hash = coin.denom.slice(4); - const ellidedHash = ellideMiddle(hash, 12); + const ellidedHash = ellideMiddle(hash, 11); const ticker = `ibc/${ellidedHash}`; return value + thinSpace + ticker; }