I was just submitting a proposal for the first time and after it was successful my first thought was to execute the proposal. But the only way to get the proposal ID is by calling the totalProposalCount() and checking if yours was the last one created. It's more practical to simply return the ID, enhancing the developer experience and frontend integrations.
Describe Preferred Solution
[ ] Add the uint32 proposal ID as a return for submitProposal function.
[ ] Add unchecked for impossible to overflow counter.
Feature Request
Describe the Feature Request
I was just submitting a proposal for the first time and after it was successful my first thought was to execute the proposal. But the only way to get the proposal ID is by calling the
totalProposalCount()
and checking if yours was the last one created. It's more practical to simply return the ID, enhancing the developer experience and frontend integrations.Describe Preferred Solution
Code Related
https://github.com/decentdao/decent-contracts/blob/75eac0d9c50d1979079603783040a34c2809b31d/contracts/azorius/Azorius.sol#L148