mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-27 13:41:32 +00:00
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:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user