Skip to content

Commit

Permalink
Fix packable compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 9, 2023
1 parent 5d58545 commit b615263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/types/block/unlock/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub(crate) type UnlocksCount =

/// Unlocks a Multi Address with a list of other unlocks.
#[derive(Clone, Debug, Eq, PartialEq, Hash, Packable)]
// #[packable(unpack_error = Error, with = |_| Error::InvalidMultiUnlockCount)]
#[packable(unpack_error = Error, with = |e| e.unwrap_item_err_or_else(|p| Error::InvalidMultiUnlockCount(p.into())))]
pub struct MultiUnlock(#[packable(verify_with = verify_unlocks)] BoxedSlicePrefix<Unlock, UnlocksCount>);

impl MultiUnlock {
Expand Down

0 comments on commit b615263

Please sign in to comment.