-
Notifications
You must be signed in to change notification settings - Fork 386
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
r/gnoland/faucet.Render
panics
#621
Comments
tbruyelle
changed the title
r/gnoland/faucet
Mar 20, 2023
Render
panicsr/gnoland/faucet.Render
panics
tbruyelle
added a commit
to tbruyelle/gno
that referenced
this issue
Mar 21, 2023
Fix gnolang#621 `Render` prints the controllers in a loop but relies on `gControllersSize` rather than `gControllers.Size()` to determine the number of controllers. The fix simply replaces `gControllersSize` by `gControllers.Size()`. Fix gnolang#627 filetest `Output:` directive doesn't work when the output contains multiple consecutive empty lines, because the method used to collect those comments truncate them (see issue and `ast.CommentGroup.Text()`). The fix replaces this method by a custom one that doesn't truncate.
tbruyelle
added a commit
to tbruyelle/gno
that referenced
this issue
Apr 3, 2023
Fix gnolang#621 `Render` prints the controllers in a loop but relies on `gControllersSize` rather than `gControllers.Size()` to determine the number of controllers. The fix simply replaces `gControllersSize` by `gControllers.Size()`. Fix gnolang#627 filetest `Output:` directive doesn't work when the output contains multiple consecutive empty lines, because the method used to collect those comments truncate them (see issue and `ast.CommentGroup.Text()`). The fix replaces this method by a custom one that doesn't truncate.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Under the minimal genesis gnoland blockchain, it's not possible to render the faucet contract :
Your environment
Steps to reproduce
call the render of the
r/gnoland/faucet
contract.Assumption: The
Render
method loops ongControllers
usinggControllerSize
, but without checking ifgControllers.Size()
is greater or equal thangControllerSize
.Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Logs
website
binary log:The text was updated successfully, but these errors were encountered: