gnolang / gno

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.
https://gno.land/
Other
882 stars 364 forks source link

workshops: forum tutorial tests failing #1897

Open MalekLahbib opened 5 months ago

MalekLahbib commented 5 months ago

Description

@zivkovicmilos

we've tried to follow your forum tutorial, but the forum_test.gno was displaying errors each time:

Screenshot from 2024-04-07 16-44-26

So after making several tests and trying to find the problem, I realized that the "setter" functions were not modifying the forum created in the test file and then realized that these functions were called with (f Forum) instead of (f *Forum).

So can you modify your hackmd file so that it works correctly?

PS: I don't know if you added the forum example somewhere, and if you want us to do a PR to add is to the examples.

zivkovicmilos commented 5 months ago

Hey @MalekLahbib,

Thank you for looking into this 🙏

I've pinged our DevRel @leohhhn to take a look at optimizing this tutorial and seeing where we can fit it in on the official docs / some tutorial page, so I'll keep this issue open until we resolve it