chore: cherry-pick some inj changes (#17109)

This commit is contained in:
Julien Robert
2023-07-24 13:07:06 +00:00
committed by GitHub
parent 9c6a225932
commit 5442197d6b
14 changed files with 71 additions and 5 deletions
+1
View File
@@ -76,6 +76,7 @@ const (
FlagOffset = "offset"
FlagCountTotal = "count-total"
FlagTimeoutHeight = "timeout-height"
FlagKeyAlgorithm = "algo"
FlagKeyType = "key-type"
FlagFeePayer = "fee-payer"
FlagFeeGranter = "fee-granter"
+1 -1
View File
@@ -82,7 +82,7 @@ Example:
// support old flags name for backwards compatibility
f.SetNormalizeFunc(func(f *pflag.FlagSet, name string) pflag.NormalizedName {
if name == "algo" {
if name == flags.FlagKeyAlgorithm {
name = flags.FlagKeyType
}