Skip to content

Commit 247d8db

Browse files
committed
remove sneaky unwrap from drand pallet
1 parent a0e96d5 commit 247d8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/drand/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ pub fn make_msm_args<Group: ark_ec::VariableBaseMSM>(
7474

7575
pub fn serialize_argument(argument: impl CanonicalSerialize) -> Vec<u8> {
7676
let mut buf = vec![0; argument.serialized_size(Compress::No)];
77-
argument.serialize_uncompressed(buf.as_mut_slice()).unwrap();
77+
argument.serialize_uncompressed(buf.as_mut_slice()).unwrap_or_default();
7878
buf
7979
}

0 commit comments

Comments
 (0)