Print instruction on trace errors (#201)

This commit is contained in:
Mike Voronov
2021-12-26 22:52:00 +03:00
committed by GitHub
parent bde7193747
commit c1ff7c0688
10 changed files with 67 additions and 42 deletions

View File

@ -122,12 +122,5 @@ 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()
}