Skip to content

Commit

Permalink
Merge PR #2956: gaiadebug: fix addr fmt to print bech32 and hex
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman authored and cwgoes committed Nov 30, 2018
1 parent 0473621 commit b5ccbc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/gaia/cmd/gaiadebug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ func runAddrCmd(cmd *cobra.Command, args []string) error {
valAddr := sdk.ValAddress(addr)

fmt.Println("Address:", addr)
fmt.Println("Bech32 Acc:", accAddr)
fmt.Println("Bech32 Val:", valAddr)
fmt.Printf("Address (hex): %X\n", addr)
fmt.Printf("Bech32 Acc: %s\n", accAddr)
fmt.Printf("Bech32 Val: %s\n", valAddr)
return nil
}

Expand Down

0 comments on commit b5ccbc9

Please sign in to comment.