fix(cli): fix the show-address cli cmd (#11337)

* fix: fix the `show-address` cli cmd

* update the changelog
This commit is contained in:
Sai Kumar
2022-03-09 10:55:31 +01:00
committed by GitHub
parent 3d3cf25546
commit dc0927071f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func ShowAddressCmd() *cobra.Command {
serverCtx := GetServerContextFromCmd(cmd)
cfg := serverCtx.Config
privValidator, err := pvm.LoadFilePV(cfg.PrivValidator.Key, cfg.PrivValidator.State)
privValidator, err := pvm.LoadFilePV(cfg.PrivValidator.KeyFile(), cfg.PrivValidator.StateFile())
if err != nil {
return err
}