If you change
copy.val++ then it should behave as you expect. Notice in your current implementation
copy is never referenced after it is declared. Therefore neither of your
copy deceleration does anything.
Great article! It is really awesome to see ideas realized in code and working prototype.
I want to push a bit on the issue that not all signed message might be submitted by the Dapp owner. I think that is a legitimate concern especially if the Dapp owner has a conflict of interests in the votes himself. The owner could…