There was an error while loading. Please reload this page.
1 parent 7299960 commit 305ba48Copy full SHA for 305ba48
2 files changed
.github/workflows/test.yml
@@ -36,3 +36,5 @@ jobs:
36
cargo pgrx install -p pg_golden_axe --pg-config /tmp/golden-axe-pg-test/install/postgresql-17.2.0-x86_64-unknown-linux-gnu/bin/pg_config
37
- name: Run tests
38
run: cargo test
39
+ env:
40
+ RPC_URL: ${{ secrets.RPC_URL }}
shared/src/jrpc.rs
@@ -277,7 +277,9 @@ mod tests {
277
278
#[test_log::test(tokio::test)]
279
async fn test_block_and_logs() {
280
- let client = super::Client::new("https://eth.merkle.io/");
+ let url = std::env::var("RPC_URL").unwrap_or_else(|_| "https://eth.merkle.io/".to_string());
281
+ let client = super::Client::new(&url);
282
+ println!("{url}");
283
let n: u64 = 12_911_679;
284
285
let b = client.block(format!("0x{:x}", n)).await.unwrap();
0 commit comments