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

@ -1,7 +1,7 @@
[package]
name = "air-interpreter-interface"
description = "Interface of the AIR interpreter"
version = "0.11.1"
version = "0.11.2"
authors = ["Fluence Labs"]
edition = "2018"
license = "Apache-2.0"

View File

@ -45,6 +45,24 @@ pub struct InterpreterOutcome {
pub call_requests: Vec<u8>,
}
impl InterpreterOutcome {
pub fn new(
ret_code: i64,
error_message: String,
data: Vec<u8>,
next_peer_pks: Vec<String>,
call_requests: Vec<u8>,
) -> Self {
Self {
ret_code,
error_message,
data,
next_peer_pks,
call_requests,
}
}
}
#[cfg(feature = "marine")]
impl InterpreterOutcome {
pub fn from_ivalue(ivalue: IValue) -> Result<Self, String> {