Skip to content

Commit 5ce689e

Browse files
committed
use rpc test url from env
1 parent 7299960 commit 5ce689e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

shared/src/jrpc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ mod tests {
277277

278278
#[test_log::test(tokio::test)]
279279
async fn test_block_and_logs() {
280-
let client = super::Client::new("https://eth.merkle.io/");
280+
let url = std::env::var("RPC_URL").unwrap_or_else(|_| "https://eth.merkle.io/".to_string());
281+
let client = super::Client::new(&url);
281282
let n: u64 = 12_911_679;
282283

283284
let b = client.block(format!("0x{:x}", n)).await.unwrap();

0 commit comments

Comments
 (0)