fix(trace-handler): fix fold and canon compatibility (#357)

Fixes bug of traces divergence when `canon` is used inside `fold`.

Closes #356.
This commit is contained in:
Mike Voronov
2022-10-09 12:56:12 +03:00
committed by GitHub
parent cd598c28ae
commit 910f1665eb
30 changed files with 741 additions and 311 deletions

View File

@ -132,5 +132,12 @@ pub fn is_interpreter_succeded(result: &RawAVMOutcome) -> bool {
}
pub fn check_error(result: &RawAVMOutcome, error: impl ToErrorCode + ToString) -> bool {
println!(
"{} == {} && {} == {}",
result.ret_code,
error.to_error_code(),
result.error_message,
error.to_string()
);
result.ret_code == error.to_error_code() && result.error_message == error.to_string()
}