UniversityDAO / udao

The official UniversityDAO DApp repository.
GNU Lesser General Public License v2.1
4 stars 4 forks source link

How to set contract abis, address, and provider #42

Closed oslfmt closed 2 years ago

oslfmt commented 2 years ago

Any idea if this is an expensive operation? It's called in every single single function. In fact, the lines of code from 38-40 are the same in each function, grabbing the address, abi, and provider. I'm wondering if there's a more efficient way to do this. Maybe set these in the root, like in App.js.

_Originally posted by @victor-wei126 in https://github.com/UniversityDAO/udao/pull/41#discussion_r922918424_

oslfmt commented 2 years ago

Fixed by #44