mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 06:45: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]]
|
||||
name = "aquamarine-vm"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
dependencies = [
|
||||
"aqua-interpreter-interface",
|
||||
"fluence-faas",
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user