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

No metatx param mostly for test purpose #27

Merged
merged 2 commits into from
Dec 19, 2023
Merged

No metatx param mostly for test purpose #27

merged 2 commits into from
Dec 19, 2023

Conversation

kompotkot
Copy link
Collaborator

No description provided.

Copy link
Contributor

@zomglings zomglings left a comment

Choose a reason for hiding this comment

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

lgtm

But I think whatever you are putting in query parameters on POST /signers/<address>/sign/dropper needs to be part of request body.

What is implemented now is a weird pattern.

Either do it in this PR (ideal) or create an issue.

server.go Outdated
@@ -285,7 +295,7 @@ func (server *Server) signDropperRoute(w http.ResponseWriter, r *http.Request, s
authorizationToken := authorizationContext.AuthorizationToken

queries := r.URL.Query()
isMetatxDrop := queries.Has("is_metatx_drop")
noMetatx := queries.Has("no_metatx")
Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't like these query parameters that have no values.

Can you make this part of the JSON request body?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@kompotkot kompotkot merged commit a5484b0 into main Dec 19, 2023
1 check passed
@kompotkot kompotkot deleted the no-metatx branch December 19, 2023 14:36
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