diff --git a/tvm-grpc/proto/tvm.proto b/tvm-grpc/proto/tvm.proto index 8db3a38c..539301e1 100644 --- a/tvm-grpc/proto/tvm.proto +++ b/tvm-grpc/proto/tvm.proto @@ -8,7 +8,7 @@ service TvmEmulatorService { } message RunGetMethodRequest { - string params = 1; + string params_boc = 1; int64 gas_limit = 2; } diff --git a/tvm-grpc/src/tvm_emulator.rs b/tvm-grpc/src/tvm_emulator.rs index 7078b8b2..bf86a826 100644 --- a/tvm-grpc/src/tvm_emulator.rs +++ b/tvm-grpc/src/tvm_emulator.rs @@ -2,6 +2,7 @@ use std::collections::HashMap; use std::pin::Pin; use std::sync::{Arc, OnceLock}; use std::time::Duration; +use anyhow::anyhow; use async_stream::stream; use futures::Stream; use tokio_stream::StreamExt; @@ -121,7 +122,7 @@ impl BaseTvmEmulatorService for TvmEmulatorService { async fn run_get_method(&self, request: Request) -> Result, Status> { let req = request.into_inner(); - let result = emulate_run_method(&req.params, req.gas_limit).map_err(|e| Status::internal(e.to_string()))?; + let result = emulate_run_method(&req.params_boc, req.gas_limit).map_err(|e| Status::internal(e.to_string()))?; Ok(Response::new(crate::tvm::RunGetMethodResponse { result })) }