Skip to content

Commit

Permalink
use array in from_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed Apr 15, 2024
1 parent b46370e commit 488b307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl CallInfo {
}

// Construct `Self` for some `network` given some `encoded` bytes.
pub(super) fn from_bytes(encoded: &Vec<u8>, network: Network) -> Self {
pub(super) fn from_bytes(encoded: &[u8], network: Network) -> Self {
let hash = blake2_256(encoded);
let length = (encoded.len()).try_into().unwrap();
Self { network, encoded: encoded.to_vec(), hash, length }
Expand Down

0 comments on commit 488b307

Please sign in to comment.