rename outcome in raw-aquamarine-vm-api

This commit is contained in:
vms 2021-02-17 23:16:22 +03:00
parent 47f0b31f3f
commit 0a9df646cf
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -52,7 +52,7 @@ dependencies = [
[[package]]
name = "aquamarine-vm"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"aqua-interpreter-interface",
"fluence-faas",

View File

@ -1,7 +1,7 @@
[package]
name = "aquamarine-vm"
description = "Fluence Aquamarine VM"
version = "0.3.0"
version = "0.3.1"
authors = ["Fluence Labs"]
edition = "2018"
license = "Apache-2.0"

View File

@ -264,14 +264,14 @@ impl AquamarineVM {
aqua: impl Into<String>,
prev_data: impl Into<Vec<u8>>,
data: impl Into<Vec<u8>>,
) -> Result<StepperOutcome> {
) -> Result<InterpreterOutcome> {
let args = prepare_args(prev_data.into(), data, init_user_id.into(), aqua);
let result =
self.faas
.call_with_ivalues(&self.wasm_filename, "invoke", &args, <_>::default())?;
let outcome = StepperOutcome::from_ivalues(result)
let outcome = InterpreterOutcome::from_ivalues(result)
.map_err(AquamarineVMError::StepperResultDeError)?;
Ok(outcome)