From 04ff7abc49403725b3111f2fd1b55fa40753f530 Mon Sep 17 00:00:00 2001 From: Dong Lieu <93205232+DongLieu@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:02:59 +0700 Subject: [PATCH] Lint x/meshsecurity/types/keys.go Co-authored-by: Mauro Lacy --- x/meshsecurity/types/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/meshsecurity/types/keys.go b/x/meshsecurity/types/keys.go index 73e7b54a..39e9ffbc 100644 --- a/x/meshsecurity/types/keys.go +++ b/x/meshsecurity/types/keys.go @@ -102,7 +102,7 @@ func BuildPipedValsetOpKey(op PipedValsetOperation, val sdk.ValAddress, slashInf if slashInfo == nil { panic("slash info is nil") } - sn = 8 + 8 + 1 + len(slashInfo.TotalSlashAmount) + 1 + len(slashInfo.SlashFraction) + 8 // 8 for height, 8 for power, +1 for total amount length ,+1 for slash length, +8 for time + sn = 8 + 8 + 1 + len(slashInfo.TotalSlashAmount) + 1 + len(slashInfo.SlashFraction) + 8 // 8 for height, 8 for power, +1 for total amount length, +1 for slash length, +8 for time } r := make([]byte, pn+an+sn+1+1) // +1 for address prefix, +1 for op copy(r, PipedValsetPrefix)