At the top of proposal_status is an assertion that doesn't seem to belong there. It will panic if the status is not InProgress
It seems that this can easily be removed as the only two places where it's called are guarded against the same assertion.
Not a difficult ticket, just documenting here for a small PR, and so we don't combine a bunch of changes into on PR.
After this assertion is removed, users can expect to call this public function and not get an error.
Actually, this isn't what I thought the function should be.
It's possible we want to have this be pub(crate) fn instead, but closing this issue with my new knowledge
At the top of
proposal_status
is an assertion that doesn't seem to belong there. It will panic if the status is notInProgress
It seems that this can easily be removed as the only two places where it's called are guarded against the same assertion.Not a difficult ticket, just documenting here for a small PR, and so we don't combine a bunch of changes into on PR.
After this assertion is removed, users can expect to call this public function and not get an error.