From 69f9cdf018e3aae035838b27df0f431753f77dec Mon Sep 17 00:00:00 2001 From: boleklebovski <160799963+boleklebovski@users.noreply.github.com> Date: Tue, 11 Aug 2026 21:48:29 +0200 Subject: [PATCH] fix(parser): stop stripping leading zeros in BytesToHexWithPrefix TrimLeft takes a cutset, so every leading zero nibble was removed and distinct addresses collapsed onto the same key. rollytics already has the correct form of this function. Signed-off-by: boleklebovski <160799963+boleklebovski@users.noreply.github.com> --- pkg/parser/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/parser/accounts.go b/pkg/parser/accounts.go index dd27df5a..6650052e 100644 --- a/pkg/parser/accounts.go +++ b/pkg/parser/accounts.go @@ -58,7 +58,7 @@ func BytesToHex(b []byte) string { } func BytesToHexWithPrefix(b []byte) string { - return "0x" + strings.TrimLeft(hex.EncodeToString(b), "0") + return "0x" + hex.EncodeToString(b) } func GrepAddressesFromEvents(events []abci.Event) (grepped []sdk.AccAddress, err error) {