Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 8, 2024
1 parent c99afd6 commit bb5e710
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/env/src/engine/on_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,7 @@ impl TypedEnvBackend for EnvInstance {
);
match call_result {
Ok(()) | Err(ReturnErrorCode::CalleeReverted) => {
let decoded = scale::DecodeAll::decode_all(&mut &output[..]).map_err(|err| {
ext::debug_message(ink_prelude::format!(
"Call result decoding error: {:?} output len was {:?}",
err, &output.len()
).as_bytes());
err
})?;
let decoded = scale::DecodeAll::decode_all(&mut &output[..])?;
Ok(decoded)
}
Err(actual_error) => Err(actual_error.into()),
Expand Down

0 comments on commit bb5e710

Please sign in to comment.