Merge PR #2956: gaiadebug: fix addr fmt to print bech32 and hex

This commit is contained in:
Ethan Buchman 2018-11-30 09:39:18 -05:00 committed by Christopher Goes
parent 0473621570
commit b5ccbc9f07
1 changed files with 3 additions and 2 deletions

View File

@ -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
}