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]] [[package]]
name = "aquamarine-vm" name = "aquamarine-vm"
version = "0.3.0" version = "0.3.1"
dependencies = [ dependencies = [
"aqua-interpreter-interface", "aqua-interpreter-interface",
"fluence-faas", "fluence-faas",

View File

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

View File

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