DA0-DA0 / dao-contracts

CosmWasm smart contracts for Interchain DAOs.
https://docs.daodao.zone
BSD 3-Clause "New" or "Revised" License
202 stars 132 forks source link

Add missing query to dao-pre-propose-approver #766

Closed NoahSaso closed 7 months ago

NoahSaso commented 7 months ago

The dao-pre-propose-approver contract does not currently provide any query to determine which pre-propose ID corresponds with a given proposal. In other words, you cannot check which pending proposal an approval proposal was made for.

This PR adds a query PendingProposalIdForApprovalProposalId which takes the id of the approval proposal being voted on by the approval DAO and returns the id of the pending proposal in the dao-pre-propose-single contract on the DAO waiting for proposal approval.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (development@db42d45). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #766 +/- ## ============================================== Coverage ? 96.26% ============================================== Files ? 203 Lines ? 50093 Branches ? 0 ============================================== Hits ? 48221 Misses ? 1872 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.