near-daos / sputnik-dao-contract

Smart contracts for https://app.astrodao.com
https://astrodao.com/
MIT License
108 stars 76 forks source link

TESTCOV: Sputnik DAO: View Functions #128

Open TrevorJTClarke opened 2 years ago

TrevorJTClarke commented 2 years ago

Create test coverage for the following:

Views

version

GaloisField2718 commented 2 years ago

Hello,

Can you detail arguments needed by functions.

Apparently has_blob require hash field, but hash of what ?

GaloisField2718 commented 2 years ago

For get_last_proposal_id if it's return n, to get this proposal the id is n-1. So I think we can decrement get_proposal_id to have directly the right id. I don't know what file determine this functions.