sal-modular/evm_client/tests/evm_client.rs
Sameh Abouelsaad 85a15edaec feat: Upgrade dependencies and refactor client
- Upgrade several dependencies to their latest versions.
- Refactor the EVM client for improved modularity and clarity.
- Simplify transaction signing and sending logic.
2025-05-16 03:07:42 +03:00

12 lines
373 B
Rust

#![cfg(not(target_arch = "wasm32"))]
// tests/evm_client.rs
use evm_client::send_rpc;
#[tokio::test]
async fn test_send_rpc_smoke() {
// This test just checks the function compiles and can be called.
let url = "http://localhost:8545";
let body = r#"{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}"#;
let _ = send_rpc(url, body).await;
}