Skip to content

Commit 55f42eb

Browse files
authored
fix Reply issue (#4019)
1 parent a91a1d9 commit 55f42eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jormungandr/src/rest/v0/handlers.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ pub async fn get_jor_address(
267267
let context = context.read().await;
268268
logic::get_jor_address(&context, &evm_id_hex)
269269
.await
270+
.map(|r| warp::reply::json(&r))
270271
.map_err(warp::reject::custom)
271272
}
272273

@@ -278,6 +279,6 @@ pub async fn get_evm_address(
278279
let context = context.read().await;
279280
logic::get_evm_address(&context, &evm_id_hex)
280281
.await
281-
.map_err(warp::reject::custom)
282282
.map(|r| warp::reply::json(&r))
283+
.map_err(warp::reject::custom)
283284
}

0 commit comments

Comments
 (0)