Use valpk.Address()
This commit is contained in:
parent
9fa4a55012
commit
c7a9b53fae
@ -21,11 +21,11 @@ func GetCmdQuerySigningInfo(storeName string, cdc *wire.Codec) *cobra.Command {
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
addr, err := sdk.GetAccAddressBech32Cosmos(args[0])
|
||||
pk, err := sdk.GetValPubKeyBech32Cosmos(args[0])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
key := slashing.GetValidatorSigningInfoKey(addr)
|
||||
key := slashing.GetValidatorSigningInfoKey(pk.Address())
|
||||
ctx := context.NewCoreContextFromViper()
|
||||
res, err := ctx.Query(key, storeName)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user