Use 5 chars for hash
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
This commit is contained in:
co-authored by
Simon Warta
parent
3af4f62145
commit
bd28c5de88
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user