Skip to content

Commit

Permalink
fix parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh committed Oct 10, 2023
1 parent 476832b commit 35505a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/observer/client/cli/query_blame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35505a8

Please sign in to comment.