- Upgrade several dependencies to their latest versions. - Refactor the EVM client for improved modularity and clarity. - Simplify transaction signing and sending logic.
12 lines
373 B
Rust
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;
|
|
}
|