Skip to content

Commit

Permalink
removing suint from frombytearray types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrof committed Dec 27, 2024
1 parent e50d89e commit f706a18
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ergotree-interpreter/src/eval/sglobal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ pub(crate) static SGLOBAL_FROM_BIGENDIAN_BYTES_EVAL_FN: EvalFn = |mc, _env, _ctx
})?,
))
}
SType::SUnit => {
if !bytes.is_empty() {
return Err(EvalError::UnexpectedValue(
"To deserialize Unit with fromBigEndianBytes, empty byte array should be provided".to_string(),
));
}
Ok(Value::Unit)
}
_ => Err(EvalError::UnexpectedValue(format!(
"Unsupported type provided in fromBigEndianBytes: {:?}",
type_val
Expand Down

0 comments on commit f706a18

Please sign in to comment.