Skip to content

Commit

Permalink
fix: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Aug 21, 2023
1 parent 97b8cad commit 792a283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radix-engine/src/blueprints/models/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ macro_rules! declare_key_new_type {
fn try_from(substate_key: &SubstateKey) -> Result<Self, Self::Error> {
let (sort_prefix, payload_bytes) = substate_key.for_sorted().ok_or(())?;
let content = scrypto_decode(payload_bytes).map_err(|_| ())?;
Ok(Self::from_sort_key_and_content(*sort_prefix, content))
Ok(Self::from_sort_key_and_content(u16::from_be_bytes(*sort_prefix), content))
}
}

Expand Down

0 comments on commit 792a283

Please sign in to comment.