Moralis DAO poll git repo has wrong files?

I think the files for the DAO are not here… but the ‘Web3 social network boilerplate’ files have been place here instead?


Notice how the url says ‘moralis poll’ yet the readme and other files are from the ‘Web 3 social network boilerplate’.

Video tutorial: https://www.youtube.com/watch?v=S-yBqLWEtGw

https://github.com/ethereum-boilerplate/web3-social-network-boilerplate seems to be the updated one, you can try that first.

ok, thanks, will have a look

I was looking for a solidty smart contract for the DAO poll, but looking back at the video it seems to run off the js file (polls.js) alone. Is that correct? No extra smart contract needed for the poll?

That contract seems to be here. The tutorial should cover deployment.

thanks, didn’t realize the poll was also in there!

Hi,

Apologies for going on about this, you may be aware already:

Please consider editing the README file at ‘https://github.com/ashbeech/moralis-poll.git’ to have the correct link for the git clone to ‘https://github.com/ashbeech/moralis-poll.git’, as currently it states ‘git clone https://github.com/ethereum-boilerplate/web3-social-network-boilerplate’.

The files are slightly different and the one at the poll repo has the src/components/Poll.js file while the original boilerplate repo does not.

It may seem obvious to some but took me a while to figure out what was wrong!

Thanks for the repos and support, much appreciated.

Hi,

Thanks for the support. I actually managed to complete this, my first working dapp, using the https://github.com/ashbeech/moralis-poll repo.

I had to use the info on the other post on the forum (Dependency issues in morialis-poll repository from "Make a DAO in 10 minutes" tutorial), which advises to run npm install --save --legacy-peer-deps.

Will try the boilerplate next…

Thanks to Ash and the team!

P.S. Any help with coding in the function to stop users voting more than once will be appreciated?

1 Like

Great stuff.

P.S. Any help with coding in the function to stop users voting more than once will be appreciated?

This can be enforced at the smart contract level. E.g. you could use a mapping where the user can only vote if a property like hasVoted is false for a particular poll.

1 Like