Skip to content

Commit

Permalink
Fix json rpc server (MystenLabs#2754)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Jun 28, 2022
1 parent a6eabab commit e33bda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/sui/src/bin/rpc-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use sui_config::SUI_GATEWAY_CONFIG;
use sui_core::gateway_state::GatewayMetrics;
use sui_gateway::create_client;
use sui_json_rpc::bcs_api::BcsApiImpl;
use sui_json_rpc::gateway_api::RpcGatewayImpl;
use sui_json_rpc::gateway_api::{GatewayReadApiImpl, TransactionBuilderImpl};
use sui_json_rpc::gateway_api::{GatewayWalletSyncApiImpl, RpcGatewayImpl};
use sui_json_rpc::JsonRpcServerBuilder;
use tracing::info;

Expand Down Expand Up @@ -65,7 +65,8 @@ async fn main() -> anyhow::Result<()> {
server.register_module(RpcGatewayImpl::new(client.clone()))?;
server.register_module(GatewayReadApiImpl::new(client.clone()))?;
server.register_module(TransactionBuilderImpl::new(client.clone()))?;
server.register_module(BcsApiImpl::new_with_gateway(client))?;
server.register_module(BcsApiImpl::new_with_gateway(client.clone()))?;
server.register_module(GatewayWalletSyncApiImpl::new(client))?;

let server_handle = server.start(address).await?;

Expand Down

0 comments on commit e33bda5

Please sign in to comment.