Skip to content

Commit

Permalink
parse to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed May 14, 2021
1 parent 2c08756 commit dad26e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/rpc/subscription/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (c *WSConn) unsubscribeStorageListener(reqID float64, params interface{}) {
case float64:
id = uint(v)
case string:
i, err := strconv.ParseInt(v, 10, 64)
i, err := strconv.ParseUint(v, 10, 64)
if err != nil {
c.safeSend(newBooleanResponseJSON(false, reqID))
return
Expand Down

0 comments on commit dad26e9

Please sign in to comment.