Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve commitment decoding bug #65

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

epociask
Copy link
Collaborator

Pull Request Template

Fixes Issue

Fixes #

Changes proposed

Screenshots (Optional)

Note to reviewers

@@ -260,6 +261,10 @@ func ReadCommitmentMode(r *http.Request) (commitments.CommitmentMode, error) {
if key == "" { // default
commit := path.Base(r.URL.Path)
if len(commit) > 0 && commit != "put" { // provided commitment in request params
if !strings.HasPrefix(commit, "0x") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An related thing, when I use eigenda-proxy through curl. I have to put
127.0.0.1:3100/put/
If I miss the last "/", the eigenda-proxy would not be able to respond. Is it expected based on some standard, or something we can fix

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its expected based on a standard - given that client interactions are done programmatically its probably ok to keep it this way

@epociask epociask merged commit 0593497 into main Aug 6, 2024
6 of 7 checks passed
@epociask epociask deleted the epociask--fix-commitment-decoding branch August 22, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants