Gofven / flowback

Flowback 1st Iteration
GNU General Public License v3.0
2 stars 3 forks source link

Store blockchain id's on polls, proposals and prediction statements #63

Closed Kattenelvis closed 2 weeks ago

Kattenelvis commented 1 month ago

The smart contracts return some ID value for polls, proposals and prediction statements that are not equal to their respective ID's. One possible solution is to store blockchain_id as a separate optional value that's passed in when creating those objects.

Gofven commented 1 month ago

Although i do get what you mean, wouldn't it be unsafe to rely on the users input to store the ID values from the end user?

Kattenelvis commented 2 weeks ago

Although i do get what you mean, wouldn't it be unsafe to rely on the users input to store the ID values from the end user?

The frontend design will take the ID generated in metamask and input it automatically, I will not ask the user to input it. If someone where to put in a false ID using something like postman on create poll, then no one would be able to create any proposal or prediction blockchain pushes with it, which is just the same as if the poll had never been pushed in the first place.

I'm not sure how else to do it

Gofven commented 2 weeks ago

Added all the nessesary features for it c:! Although we might need to find a different way of solving this in the future!