mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-28 06:01:33 +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:
@ -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"
|
||||
|
@ -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> {
|
||||
|
Reference in New Issue
Block a user