CodeChain-io/codechain

Change VoteCollector::vote to return Result<(), DoubleVote<M>> rather than Option<DoubleVote<M>>

foriequal0 opened this issue · 2 comments

Rust can ensure Result<T, E> must be used while Option<T> doesn't. It'll prevent some classes of errors.

Is this issue fully resolved with the pr #1800 or some other code is still remaining?

This issue is fully resolved with it. I'll close this.