You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These uses have no error-handling for when the match fails, which could lead to nasty bugs in the future. Better to use the type system to ensure this can't happen at compile time. Just return a DAVote instead.
Same for create_vid_message.
The text was updated successfully, but these errors were encountered:
HotShot/crates/types/src/traits/election.rs
Lines 514 to 520 in f92e68a
Returns type
CommitteeConsensusMessage<TYPES>
even though all uses immediately match onDAVote
variant. See for example here:HotShot/crates/task-impls/src/da.rs
Lines 301 to 315 in f92e68a
These uses have no error-handling for when the match fails, which could lead to nasty bugs in the future. Better to use the type system to ensure this can't happen at compile time. Just return a
DAVote
instead.Same for
create_vid_message
.The text was updated successfully, but these errors were encountered: