Skip to content

Commit

Permalink
Merge pull request #774 from maticnetwork/fix-cli-checkpoint-count
Browse files Browse the repository at this point in the history
fixed: cli-checkpoint-count
  • Loading branch information
0xsharma authored Feb 11, 2022
2 parents 34fdea5 + 5bc1e98 commit abea0f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkpoint/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ func GetCheckpointCount(cdc *codec.Codec) *cobra.Command {
}

var ackCount uint64
if err := cliCtx.Codec.UnmarshalJSON(res, &ackCount); err != nil {
if err := json.Unmarshal(res, &ackCount); err != nil {
return err
}

fmt.Printf("Total number of checkpoint so far : %v", ackCount)
fmt.Printf("Total number of checkpoint so far : %d\n", ackCount)
return nil
},
}
Expand Down

0 comments on commit abea0f1

Please sign in to comment.