Skip to content

Commit

Permalink
fix: update incorrect string cast where Sprint was needed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed May 7, 2021
1 parent 5f4664d commit c83dc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang/cosmos/x/swingset/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (sh storageHandler) Receive(ctx *ControllerContext, str string) (ret string
if keys.Keys == nil {
return "0", nil
}
return string(len(keys.Keys)), nil
return fmt.Sprint(len(keys.Keys)), nil
}

return "", errors.New("Unrecognized msg.Method " + msg.Method)
Expand Down

0 comments on commit c83dc19

Please sign in to comment.