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

Cannot setup proposal deposit on token DAO creation when creating a new Token Factory #765

Closed NoahSaso closed 6 months ago

NoahSaso commented 7 months ago

When creating a new token factory DAO, using voting_module_token as the denom for the proposal deposit fails because UncheckedDepositInfo's into_checked function assumes that the voting_module_token is a cw20. This function needs to be updated to allow specifying which token type the voting module uses so it can validate accordingly.

The workaround is to create the DAO first and then setup a proposal deposit after.