diff --git a/types/src/delta_set.rs b/types/src/delta_set.rs index 6f5791a8200a3..aca98890800c1 100644 --- a/types/src/delta_set.rs +++ b/types/src/delta_set.rs @@ -63,7 +63,7 @@ pub fn serialize(value: &u128) -> Vec { } /// Deserializes value for delta application. -pub fn deserialize(value_bytes: &Vec) -> u128 { +pub fn deserialize(value_bytes: &[u8]) -> u128 { bcs::from_bytes(value_bytes).expect("unexpected deserialization error") }