chore: change id to use uint64 in AccountAddressByID (#13411)

This commit is contained in:
atheeshp
2022-09-28 12:42:53 -04:00
committed by GitHub
parent 9b48c68a1f
commit 3d0e214446
8 changed files with 80 additions and 91 deletions
+2 -2
View File
@@ -139,9 +139,9 @@ func GetAccountAddressByIDCmd() *cobra.Command {
return err
}
id, err := strconv.ParseInt(args[0], 10, 64)
id, err := strconv.ParseUint(args[0], 10, 64)
if err != nil {
return err
return fmt.Errorf("id %s not a valid uint, please input a valid account-id", args[0])
}
queryClient := types.NewQueryClient(clientCtx)