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 admin auth to cw-admin-factory #810

Closed NoahSaso closed 3 months ago

NoahSaso commented 3 months ago

This adds the ability to set an admin on cw-admin-factory, which restricts the contract self-admin instantiate execution message to be executable only by the admin. If no admin is set, the contract can be executed by anyone, and there can never be an admin set again.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 99.22481% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.22%. Comparing base (ef21c63) to head (f871491).

Files Patch % Lines
...ontracts/external/cw-admin-factory/src/contract.rs 93.75% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #810 +/- ## =============================================== + Coverage 96.21% 96.22% +0.01% =============================================== Files 207 207 Lines 54032 54153 +121 =============================================== + Hits 51989 52111 +122 + Misses 2043 2042 -1 ```

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