From 54180132301346faff232fb598a3369c842f5aed Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Wed, 30 Oct 2024 13:41:39 +0100 Subject: [PATCH] feat(providers): adding additional providers for the Mantle chain --- src/env/infura.rs | 8 ++++++++ tests/functional/http/infura.rs | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/src/env/infura.rs b/src/env/infura.rs index 67d5e0020..8dd4460bc 100644 --- a/src/env/infura.rs +++ b/src/env/infura.rs @@ -104,6 +104,14 @@ fn default_supported_chains() -> HashMap { Weight::new(Priority::Normal).unwrap(), ), ), + // Mantle + ( + "eip155:5000".into(), + ( + "mantle-mainnet".into(), + Weight::new(Priority::Normal).unwrap(), + ), + ), ]) } diff --git a/tests/functional/http/infura.rs b/tests/functional/http/infura.rs index d8ff7fb8b..65ef379ba 100644 --- a/tests/functional/http/infura.rs +++ b/tests/functional/http/infura.rs @@ -87,4 +87,13 @@ async fn infura_provider(ctx: &mut ServerContext) { "0xe708", ) .await; + + // Mantle Mainnet + check_if_rpc_is_responding_correctly_for_supported_chain( + ctx, + &ProviderKind::Infura, + "eip155:5000", + "0x1388", + ) + .await; }