Skip to content

Commit

Permalink
fix: commitment version type
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Sep 3, 2024
1 parent d244f3e commit 1cdf3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func ReadCommitmentScheme(r *http.Request) (commitments.CommitmentMode, commitme
vb, err := ReadCommitmentVersion(r, ct)
if err != nil {
// default to version 0
return ct, commitments.CommitmentVersion(0), err
return ct, commitments.CommitmentVersion(fmt.Sprintf("%d", 0)), err
}
return ct, commitments.CommitmentVersion(vb), nil
}
Expand Down

0 comments on commit 1cdf3ce

Please sign in to comment.