Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akostylev0 committed Apr 5, 2024
1 parent 8ac5e04 commit d96dc70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tvm-grpc/proto/tvm.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ service TvmEmulatorService {
}

message RunGetMethodRequest {
string params = 1;
string params_boc = 1;
int64 gas_limit = 2;
}

Expand Down
3 changes: 2 additions & 1 deletion tvm-grpc/src/tvm_emulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -121,7 +122,7 @@ impl BaseTvmEmulatorService for TvmEmulatorService {
async fn run_get_method(&self, request: Request<RunGetMethodRequest>) -> Result<Response<crate::tvm::RunGetMethodResponse>, 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 }))
}
Expand Down

0 comments on commit d96dc70

Please sign in to comment.