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

test(uniregistrar): 🚨 make easier to test flow also on uniregistrar.io #72

Merged
merged 1 commit into from
May 16, 2024

Conversation

matteo-cristino
Copy link
Collaborator

No description provided.

call_api() {
curl -X 'POST' -o output.json \
"http://localhost:3000/1.0/${1}" \
"${endpoint}${1}${method}" \
Copy link
Member

Choose a reason for hiding this comment

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

A super small better approach is to hardcode the $ in here, this make the string concatenation future proof... if in the future you want to add more options, then you don't need to refactor this!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

what do you mean by hardcoding the $? To write directly there the value https://uniregistrar.io/1.0/${1}?method=dyne?

@andrea-dintino andrea-dintino merged commit 8077471 into main May 16, 2024
5 checks passed
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.

3 participants