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(gnoweb): FaucetURL correct endpoint #1449

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

albttx
Copy link
Member

@albttx albttx commented Dec 16, 2023

Following PR https://github.com/gnolang/gno/pull/1444/files

This is needed for portal loop

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@albttx albttx requested a review from a team as a code owner December 16, 2023 16:06
@github-actions github-actions bot added the 📦 ⛰️ gno.land Issues or PRs gno.land package related label Dec 16, 2023
Copy link

codecov bot commented Dec 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6452476) 55.87% compared to head (36f77c2) 56.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1449      +/-   ##
==========================================
+ Coverage   55.87%   56.12%   +0.25%     
==========================================
  Files         430      431       +1     
  Lines       65618    65860     +242     
==========================================
+ Hits        36667    36967     +300     
+ Misses      26083    26009      -74     
- Partials     2868     2884      +16     
Flag Coverage Δ
go-1.21.x ∅ <ø> (∅)
misc ∅ <ø> (∅)
misc-_test.genstd ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -20,7 +20,7 @@
{{ end }}
</script>

<form method="POST" action="{{ .Data.faucetURL }}">
<form method="POST" action="{{ .Data.Faucet.faucetURL }}">
Copy link
Member

@thehowl thehowl Dec 19, 2023

Choose a reason for hiding this comment

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

Side-note: what a horrible templating engine we use. (These kind of errors can normally be caught by html/template if it's using structs under the hood, but here we're using a bunch of map-string-interfaces so no errors are caught...)

Have you tested this works? Reding through the code it shouldn't, this change should:

Suggested change
<form method="POST" action="{{ .Data.Faucet.faucetURL }}">
<form method="POST" action="{{ .Data.Config.FaucetURL }}">

Copy link
Member Author

Choose a reason for hiding this comment

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

OH Damn!

You're half right, i'm using gnolang/faucet, which use different variable name 😮‍💨

@moul moul merged commit 59a2ec6 into gnolang:master Dec 19, 2023
180 checks passed
gfanton pushed a commit to moul/gno that referenced this pull request Jan 18, 2024
<!-- please provide a detailed description of the changes made in this
pull request. -->

Following PR https://github.com/gnolang/gno/pull/1444/files

This is needed for portal loop

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 ⛰️ gno.land Issues or PRs gno.land package related
Projects
Status: No status
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants