This is a bit of a quick and dirty integration of the write functionality. The purpose was to try to get caught up with testing on mumbai asap, and this the PR achieves. It successfully integrates the EthersAPI write functions so that one can do the following on the frontend:
delegate their NFT (to themselves)
create new proposals
vote on proposals
This is the bare minimum to do much easier testing with the frontend. In future PRs, the following needs to be addressed, in order of importance IMO:
error handling! Lots of potential errors can happen here, either crashing the app, or staying hidden from user (in console). This is bad for UX. For example, we should either report and error or take away the vote button after voting on a proposal. I haven't explored all the possible errors
clean up metamask connection, and providers and accounts setup. It works, but is a bit dirty right now
clean up general react state management. A lot can be optimized and cleaned up here.
This is a bit of a quick and dirty integration of the write functionality. The purpose was to try to get caught up with testing on mumbai asap, and this the PR achieves. It successfully integrates the EthersAPI write functions so that one can do the following on the frontend:
This is the bare minimum to do much easier testing with the frontend. In future PRs, the following needs to be addressed, in order of importance IMO: