Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint x/meshsecurity/types/keys.go
Browse files Browse the repository at this point in the history
Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>
DongLieu and maurolacy authored Jul 3, 2024
1 parent b28fb87 commit 04ff7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/meshsecurity/types/keys.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 04ff7ab

Please sign in to comment.