Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
The example code provided in https://docs.gno.land/how-to-guides/write-simple-dapp/ was missing a return false inside the Iterate() method, resulting in a missing return error when attempting to deploy.
This PR adds the missing return to the example code
Before:
After:
Contributors' checklist...
- [X] Added new tests, or not needed, or not feasible
- [X] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
- [X] Updated the official documentation or not needed
- [X] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description
- [X] 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).
Fixes https://github.com/gnolang/gno/issues/2310
The example code provided in https://docs.gno.land/how-to-guides/write-simple-dapp/ was missing a
return false
inside theIterate()
method, resulting in amissing return
error when attempting to deploy. This PR adds the missing return to the example codeBefore:
After:
Contributors' checklist...
- [X] Added new tests, or not needed, or not feasible - [X] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [X] Updated the official documentation or not needed - [X] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [X] 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).