mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 14:55:32 +00:00
rename outcome in raw-aquamarine-vm-api
This commit is contained in:
parent
47f0b31f3f
commit
0a9df646cf
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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",
|
||||||
|
@ -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"
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user