Merge PR #2956: gaiadebug: fix addr fmt to print bech32 and hex
This commit is contained in:
parent
0473621570
commit
b5ccbc9f07
|
@ -192,8 +192,9 @@ func runAddrCmd(cmd *cobra.Command, args []string) error {
|
||||||
valAddr := sdk.ValAddress(addr)
|
valAddr := sdk.ValAddress(addr)
|
||||||
|
|
||||||
fmt.Println("Address:", addr)
|
fmt.Println("Address:", addr)
|
||||||
fmt.Println("Bech32 Acc:", accAddr)
|
fmt.Printf("Address (hex): %X\n", addr)
|
||||||
fmt.Println("Bech32 Val:", valAddr)
|
fmt.Printf("Bech32 Acc: %s\n", accAddr)
|
||||||
|
fmt.Printf("Bech32 Val: %s\n", valAddr)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue