Skip to content

Commit 8973998

Browse files
Update relayer module for PATH
1 parent b51a782 commit 8973998

File tree

2 files changed

+195
-259
lines changed

2 files changed

+195
-259
lines changed

Diff for: src/routes/relayer/router.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use axum::{Json, extract::Path, http::StatusCode, response::IntoResponse};
22

33
use super::types::RelayErrors;
4-
use crate::{json_rpc::types::JsonRpcRequest, routes::relayer::types::PoktChains};
4+
use crate::{json_rpc::types::JsonRpcRequest, routes::relayer::types::{PoktChains, Relayer}};
5+
56
use thiserror::Error;
67

78
pub async fn route_call(
@@ -12,7 +13,7 @@ pub async fn route_call(
1213
.first()
1314
.ok_or_else(|| RouterErrors::DestinationError)?;
1415
let dest = raw_destination.parse::<PoktChains>()?;
15-
let result = dest.relay_pokt_transaction(&body).await?;
16+
let result = dest.relay_transaction(&body).await?;
1617
Ok((StatusCode::OK, result))
1718
}
1819

0 commit comments

Comments
 (0)