Skip to content

Commit

Permalink
Introduce CCIP support (#25)
Browse files Browse the repository at this point in the history
* Initital local CCIP testing

* Complete CCIP support & fixes

* Cargo.lock
  • Loading branch information
Antony1060 authored Nov 22, 2023
1 parent d22d12f commit f54a487
Show file tree
Hide file tree
Showing 17 changed files with 372 additions and 173 deletions.
100 changes: 65 additions & 35 deletions server/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ mod state;
async fn main() {
dotenv().ok();

let filter = EnvFilter::new(format!("enstate={}", Level::DEBUG));
let filter = EnvFilter::new(format!(
"enstate={},ethers_ccip_read={}",
Level::DEBUG,
Level::DEBUG
));

let subscriber = FmtSubscriber::builder()
// all spans/events with a level higher than TRACE (e.g, debug, info, warn, etc.)
Expand Down
1 change: 1 addition & 0 deletions server/src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub type RouteError = (StatusCode, Json<ErrorResponse>);
pub fn profile_http_error_mapper(err: ProfileError) -> RouteError {
let status = match err {
ProfileError::NotFound => StatusCode::NOT_FOUND,
ProfileError::CCIPError(_) => StatusCode::BAD_GATEWAY,
_ => StatusCode::INTERNAL_SERVER_ERROR,
};

Expand Down
Loading

0 comments on commit f54a487

Please sign in to comment.