From 35505a808d78ddaaddcb169f0f2a1c25bd1cee4f Mon Sep 17 00:00:00 2001 From: kevinssgh Date: Tue, 10 Oct 2023 13:25:38 -0400 Subject: [PATCH] fix parse error --- x/observer/client/cli/query_blame.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/observer/client/cli/query_blame.go b/x/observer/client/cli/query_blame.go index a249572673..210debef0f 100644 --- a/x/observer/client/cli/query_blame.go +++ b/x/observer/client/cli/query_blame.go @@ -87,17 +87,17 @@ func CmdGetBlameByChainAndNonce() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - chain, err := strconv.Atoi(chainId) + chain, err := strconv.ParseUint(chainId, 10, 32) if err != nil { return err } - nonceInt, err := strconv.Atoi(nonce) + nonceInt, err := strconv.ParseUint(nonce, 10, 64) if err != nil { return err } params := &types.QueryBlameByChainAndNonceRequest{ ChainId: uint32(chain), - Nonce: uint64(nonceInt), + Nonce: nonceInt, } res, err := queryClient.BlameByChainAndNonce(cmd.Context(), params)