DA0-DA0 / dao-contracts

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

Add query to approver to get proposal ID from pre-propose ID #773

Closed NoahSaso closed 10 months ago

NoahSaso commented 10 months ago

This adds another missing query to the dao-pre-propose-approver contract to allow retrieving the approver's proposal ID attached to a given pre-propose-approval pending or completed proposal. This addition means the contract now bidirectional querying to get the attached approval proposal from either side. This is necessary in order to locate and link to the corresponding proposal.

JakeHartnell commented 10 months ago

Small linting error... but otherwise looks good.

JakeHartnell commented 10 months ago

Ah, not your linting error. Going to merge this, fixing the linting error in another PR...